本帖最后由 Dast 于 2015-6-9 16:54 编辑
#include <stdio.h>
int main(int argc, const char * argv[]) {
// insert code here...
int score = 0;
printf("input score please:");
do {
scanf("%d",&score);
} while( score<0 || score > 100);
if (score <= 60){
printf("the score is E");
}else if (score <= 80){
printf("score is B");
}else if (score <= 100){
printf("score is A");
}
return 0;
}
|
|