#include<stdio.h> int main(void) { char n; printf("输入等级: "); scanf("%c",&n); switch(n){ case'A':printf("90-100"); break; case'B':printf("80-89"); break; case'C':printf("70-79"); break; case'D':printf("60-69"); break; case'E':printf("0-59"); break; default:printf("error"); break; } return 0; }
转载于:https://www.cnblogs.com/chengruiqiking/p/3385466.html