键盘输入具体分数,输出相对应的等级,可以用swich语句实现如下( )
A.
int score; cin>>score; swich(score){ case >=90: cout< case>=80: cout< case>=70: cout< case>=60: cout< default: cout< }
B.
int score; cin>>score; swich(score){ case >=90: cout< case>=80: cout< case>=70: cout< case>=60: cout< default: cout< }
C.
int score; cin>>score; swich(score/10){ case 10: case 9:cout< case 8: cout< case 7: cout< case 6: cout< default: cout< }
D.
int score; cin>>score; swich(score/10){ case 10: case 9:cout< case 8: cout< case 7: cout< case 6: cout< default: cout< }