- #include<iostream>
- using namespace std;
- int main()
- {
- int score;
- cout<<"請輸入你(妳)的分數";
- cin>>score;
- if(score==100)
- {
- cout<<"哇好厲害歐!!";
- }else if(score>=60&&score<=100)
- {
- cout<<"恭喜及格了!!";
- }else if(score>=1&&score <=59)
- {
- cout<<"不及格回去讀書吧";
- }else if(score>=0)
- {
- cout<<"你(妳)也考的太差了八!!";
- }else
- {
- cout<<"你是來鬧的歐??";
- }
- cout<<endl;
- system("pause");
- return 0;
- }
複製代碼 |