switch的运用
#include<stdio.h>
int main(){
char grade;
scanf("%c",&grade);
switch(grade){
case'A':printf("80~100\n");break;
case'B':printf("60~80\n");break;
case'C':printf("<60\n");break;
default:printf("error\n");
}
return 0;
}