第一小组成绩流程图

#include<stdio.h>
main()
{ int score;
 printf("please enter a score:\n");
 scanf("%d",&score);
 int n=score/10;
 switch(n)
 { case 10:
 case 9:printf("A\n");
 break;
 case 8:printf("B\n");
 break;
 case 7:printf("C\n");
 break;
 case 6:printf("D\n");
 break;
 case 0:
 case 1:
 case 2:
 case 3:
 case 4:
 case 5:printf("E\n");
 break;
 }
 } 

 

posted @ 2019-03-31 18:00  一只龟  阅读(168)  评论(1编辑  收藏  举报