返回列表 發帖
  1. #include <iostream>
  2. #include <cstdlib>
  3. using namespace std;
  4. int main() {
  5. int score;
  6. cout<<"請輸入成績:";
  7. cin>>score ;
  8. if(score>=60)
  9. {cout<<"恭喜及格"<<endl;}
  10. else
  11. {cout<<"不及格,請再加油";}
  12. system("pause");
  13. return 0;
  14. }
複製代碼

TOP

#include<iostream>
#include<cstdlib>
using namespace std;
int main()
{
  int score;
  cout<<"報上你的成績:";
  cin>>score;
  if(score>=60)
  {
    cout<<"恭喜及格!"<<endl;
  }else
  {
    cout<<"恭喜補考!"<<endl;
  }
  system("pause");
  return 0;
}

TOP

返回列表