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

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

TOP

返回列表