- #include<iostream>
- #include<cstdlib>
- using namespace std;
- int main()
- {
- int score;
- cout<<"成績?: ";
- cin>>score;
- if(score==100)
- cout<<">_<!"<<endl;
- else if(score>=60 && score<100)
- cout<<"及格了!"<<endl;
- else if(score>0 && score<60)
- cout<<"不及格!去xxx!"<<endl;
- else if(score==0)
- cout<<"D:"<<endl;
- else
- cout<<"!"<<endl;
- system("pause");
- return 0;
- }
複製代碼 |