-
#include <iostream>
using namespace std;
int main(){
int a;
cin>>a;
int b=a/10;
switch(b){
case 10:
cout<<"优等生";
break;
case 9:
cout<<"优等生";
break;
case 8:
cout<<"中等生";
break;
case 7:
cout<<"中等生";
break;
case 6:
cout<<"中等生";
break;
case 5:
cout<<"差等生";
break;
case 4:
cout<<"差等生";
break;
case 3:
cout<<"差等生";
break;
case 2:
cout<<"差等生";
break;
case 1:
cout<<"差等生";
break;
case 0:
cout<<"0分选手";
break;
}
return 0;
}
-
#include <iostream>
using namespace std;
int main(){
int a;
cin>>a;
int b=a/10;
switch(b){
case 10:
cout<<"就是他";
break;
case 9:
cout<<"极度可能";
break;
case 8:
cout<<"十分可能";
break;
case 7:
cout<<"十分可能";
break;
case 6:
cout<<"十分可能";
break;
case 5:
cout<<"不大可能";
break;
case 4:
cout<<"不大可能";
break;
case 3:
cout<<"不大可能";
break;
case 2:
cout<<"不大可能";
break;
case 1:
cout<<"不大可能";
break;
case 0:
cout<<"不是他";
break;
}
return 0;
}
-
#include <iostream>
using namespace std;
int main(){
int a;
cin>>a;
switch(a){
case 7:
cout<<"Sunday";
break;
case 6:
cout<<"Saturday";
break;
case 5:
cout<<"Friday";
break;
case 4:
cout<<"Thursday";
break;
case 3:
cout<<"Wednesday";
break;
case 2:
cout<<"Tuesday";
break;
case 1:
cout<<"Monday";
break;
}
return 0;
}
*****
**以上是第四讲练习题的题解,咱们下周再见!**