杭电acm2004成绩转换

来源:互联网 发布:淘宝女士运动服 编辑:程序博客网 时间:2024/06/05 10:23
#include <stdio.h>int main(){    int t;    while(scanf("%d",&t)!=EOF)    {         if(t>100||t<0) printf("Score is error!\n");        else if(t<60)            printf("E\n");        else if(t<70)            printf("D\n");        else if(t<80)            printf("C\n");        else if(t<90)            printf("B\n");        else if(t<=100)            printf("A\n");    }    return 0;}
原创粉丝点击