- #include<iostream>
- using namespace std ;
- int main()
- {
- int score;
- cout<<"請輸入成績";
- cin>>score;
- if(score==100)
- {
- cout<<"哇!100分耶!你太厲害了!";
- }else if(score>=60 && score<100)
- {
- cout<<"恭喜妳!及格了!";
-
- }else if(score>0 && score<60)
- {
- cout<<"不及格!下次在努力!";
- }else if(score==0)
- {
- cout<<"什麼!0分!你你....(氣到說不出話來)";
- }else
- {
- cout<<"輸入錯誤,請不要亂打!";
- }
- system("pause");
- return 0;
- }
複製代碼 |