返回列表 發帖
  1. #include <iostream>
  2. #include <cstdlib>
  3. using namespace std;

  4. int main ()
  5. {
  6.         while(true)
  7.         {
  8.                 int score;
  9.                 cout<<"請輸入成績(0~100):";
  10.                 cin >>score;
  11.                 if (score >=60)
  12.                 {
  13.                         cout<<"及格"<<endl;
  14.                 }
  15.                 else
  16.                 {
  17.                         cout<<"不及格"<<endl;
  18.                 }
  19.                
  20.                 system ("pause");
  21.         }
  22.         return 0;
  23. }
複製代碼

TOP

返回列表