首页 > 代码库 > HDOJ 2004

HDOJ 2004

#include"stdio.h"int main(void){	int i;		while(scanf("%d", &i) != EOF){				if(i < 0 || i > 100){			printf("Score is error!\n");		}		else{			i = i / 10;						switch(i){				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;				default:					printf("E\n");break;						}				}			}		return 0;

 

HDOJ 2004