返回列表 發帖
  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6.     re:
  7.     int score;
  8.     cout <<"請輸入你的成績:";
  9.     cin>>score;
  10.     if(score==100)
  11.        cout <<"滿分!恭喜(≧▽≦) "<<endl;
  12.     else if(score<100&&score>=60)
  13.        cout<<"及格!(≧▽≦)" <<endl;
  14.     else if(score<60&&score>0)
  15.        cout<<"不及格╯︿╰ " <<endl;
  16.     else if(score==0)
  17.        cout<<"零分⊙_⊙" <<endl;
  18.     else
  19.        cout<<"輸入錯誤(*-.-)"<<endl;
  20.     goto re;
  21.     system("pause");
  22.     return 0;
  23. }
複製代碼
回復 1# tonyh

TOP

返回列表