#include <stdio.h> main(){ int results; printf("Pls input results:"); scanf("%d",&results); switch(results/10){ case 10: case 9:printf("成绩等级为A");break; case 8:printf("成绩等级为B"); break; case 7:printf("成绩等级为C"); break; case 6:printf("成绩等级为D"); break; case 5: case 4: case 3: case 2: case 1: case 0:printf("成绩等级为E"); break; default:printf("输入内容有误!");break; } }