返回列表 發帖
  1. #include <iostream>
  2. using namespace std;
  3. int main()
  4. {
  5.     int score;
  6.     cout<<"請輸入你的分數:";
  7.     cin>>score;
  8.     if(score>=10000000000000)
  9.     {
  10.       cout<<"恭喜你!及格了!";
  11.     }
  12.     else
  13.     {
  14.         cout<<"錯了!你沒讀書!再努力!";
  15.     }
  16.     cout<<endl;
  17.   
  18.    
  19.    
  20. system("pause");
  21.   return 0;   
  22. }
複製代碼

TOP

  1. #include <iostream>
  2. using namespace std;
  3. int main()
  4. {
  5.     int score;
  6.     cout<<"請輸入你的分數:";
  7.     cin>>score;
  8.     if(score>=60)
  9.     {
  10.       cout<<"恭喜你!及格了!";
  11.     }
  12.     else
  13.     {
  14.         cout<<"錯了!你沒讀書!再努力!";
  15.     }
  16.     cout<<endl;
  17.   
  18.    
  19.    
  20. system("pause");
  21.   return 0;   
  22. }
複製代碼

TOP

  1. #include <iostream>
  2. using namespace std;
  3. int main()
  4. {
  5.     int age;
  6.     cout<<"請問你幾年級?" ;
  7.     cin>>age;
  8.     if(age>=1 && age<3)
  9.     {
  10.        cout<<"你是低年級" ;
  11.     }else if(age>=3 && age<5)
  12.     {
  13.         cout<<"你是中年級" ;
  14.     }else if(age>=5 && age<6)
  15.     {
  16.         cout<<"你是高年級";
  17.     }else
  18.     {
  19.          cout<<"你輸入錯誤";
  20.     }
  21.    
  22.     cout<<endl ;
  23.    
  24.    
  25. system("pause");
  26. return 0;   
  27.    
  28. }
複製代碼

TOP

返回列表