标签:std 成绩 bsp int pre cas include oid ng2
/* xuejineng2016@163.com 2020年5月6日 */ #include<stdio.h> int main(void) { int score; char grade; scanf("%d", &score); switch (score / 10) { case 10: case 9:grade = ‘A‘; break; case 8:grade = ‘B‘; break; case 7:grade = ‘C‘; break; case 6:grade = ‘D‘; break; default:grade = ‘E‘;break; } printf("%c\n", grade); return 0; }
标签:std 成绩 bsp int pre cas include oid ng2
原文地址:https://www.cnblogs.com/2018jason/p/12838142.html