switch语句用法实例_switch语句举例-CSDN博客
文章浏览阅读3.5w次,点赞16次,收藏17次。学生成绩等级#include<stdio.h>void C(int c){int grade;grade=(int)(c/10);switch(grade){case 10:printf(“等级为A\n”);break;case 9:printf(“等级为A\n”);break;case 8:printf(“等级为B\n”);break;case 7:pri......