- #include<iostream>
- #include<cstdlib>
- using namespace std;
- int main()
- {
- int score;
- cout<<"請輸入你的成績: ";
- cin>>score;
- if(score==100)
- cout<<"你要看滿分多少"<<endl;
- else if(score<100 && score>=60)
- cout<<"喔"<<endl;
- else if(score<60 && score>0)
- cout<<"嗯"<<endl;
- else if(score==0)
- cout<<"聰明"<<endl;
- else
- cout<<"真神奇"<<endl;
- system("pause");
- return 0;
- }
複製代碼 |