第一天打卡
![](https://img2023.cnblogs.com/blog/3171372/202304/3171372-20230412235244664-1857135665.png)
1 #include<iostream> 2 using namespace std; 3 int main() 4 { 5 int x; 6 cout<<"你考试考了多少分:"<<endl; 7 cin>>x; 8 if(x<=100&&x>=90) 9 cout<<"优"<<endl; 10 else if(x<90&&x>80) 11 cout<<"良"<<endl; 12 else if(x<80&&x>=60) 13 cout<<"中"<<endl; 14 else if(x<60&&x>=0) 15 cout<<"差"<<endl; 16 return 0; 17 }