#include<stdio.h>
int main(void)
{
int repeat;
char ch;
/*定义一个字符*/
printf("Enter repeat:");
scanf("%d",&repeat);
ch = getchar();
/*变量ch接收从键盘上输入的一个字符*/ switch(ch){
case'A':
printf("grade=90~100\n");
break;
case'B':
printf("grade=80~89\n");
break;
case'C':
printf("grade=70~79\n");
break;
case'D':
printf("grade=60~69\n");
break;
case'E':
printf("grade=0~59\n");
break;
default:
printf("Unknown operator\n");
break;
}