返回列表 發帖
  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6.     int score;
  7.     re:
  8.     cout<<"plese enter your score: ";
  9.     cin>>score;
  10.     if(score==100)
  11.         cout<<"awesome marks! I wish you were my homework buddy"<<endl;
  12.     else if(score<100 && score>60)
  13.         cout<<"nice work there buddy!"<<endl;
  14.     else if(score<60 && score>0)
  15.         cout<<"Maybe next time!"<<endl;
  16.     else
  17.         cout<<"Dont be a liar!"<<endl;
  18.     system("pause");
  19.     goto re;
  20.     return 0;   
  21. }
複製代碼

TOP

返回列表