HDU 2004 成绩转换
2016-10-03 18:05
309 查看
成绩转换
这个当年用if做的,当然最经典的是swich标签。#include <stdio.h>
int main ()
{
int t;
while (scanf("%d",&t)!=EOF)
{
if(t>100)
printf("Score is error!\n");
else
if(t>89)
printf("A\n");
else
if(t>79)
printf("B\n");
else
if(t>69)
printf("C\n");
else
if(t>59)
printf("D\n");
else
if(t>-1)
printf("E\n");
else
printf("Score is error!\n");
}
return 0;
}
相关文章推荐
- hdu2004——成绩转换
- hdu_2004_成绩转换_解题报告
- JAVA hdu 2004(成绩转换)&&hdu 2020(绝对值排序)
- hdu 2004 成绩转换
- HDU2004 成绩转换
- HDU 2004 成绩转换
- [hdu 2004] 成绩转换
- hdu_2004_成绩转换
- HDU 2004 成绩转换(水~)
- HDU 2004 成绩转换
- hdu-oj 2004 成绩转换
- HDU 2004 成绩转换
- HDU_ACM-2004 成绩转换
- HDU 2004 - 成绩转换
- HDU 2004 成绩转换
- hdu_2004_成绩转换_解题报告
- HDU--2004 -- 成绩转换
- hdu--2004--成绩转换
- HDU2004_成绩转换
- HDU 2004 成绩转换