- #include<iostream>
- #include<cstdlib>
- using namespace std;
- int main()
- {
- int score;
- cout<<"請輸入你的分數";
- cin>>score;
- if(score==100)
- {
- cout<<"輸入錯誤,因為最高90分!";
- }else if(score>=60 && score<100)
- {
- cout<<"恭喜及格!";
- }else if(score>0 && score<60)
- {
- cout<<"遜!";
- }else if(score=0)
- {
- cout<<"!";
- }else
- {
- cout<<"再瞎一點啊!";
- }
- system("pause");
- return 0;
- }
複製代碼 |