/*五级制成绩与对应的百分之成绩换算
#include<stdio.h> int main(void) { double grade; char ch; printf("Enter grade:"); /*提示输入一个表达式*/
scanf("%lf",&grade); ch=getchar(); switch(ch){ 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("Unknown "); break; } return 0; }