返回列表 發帖
本帖最後由 tonyh 於 2018-7-11 16:06 編輯
  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {   
  6.     int score;
  7.     cout<<"please enter your scores: ";
  8.     cin>>score;
  9.     if (score==100)
  10.     cout<<"wow good job!"<<endl;
  11.     else if(score<100 && score>=60)
  12.     cout<<" congratulations you have passed:))"<<endl;
  13.      else if(score<60 && score>0)
  14.         cout<<"you have not passed:("<<endl;
  15.     else if(score==0)
  16.         cout<<"0, very bad!"<<endl;
  17.     else
  18.         cout<<"you have entered incorrect marks"<<endl;
  19.     system("pause");
  20.     return 0;   
  21. }
複製代碼

TOP

返回列表