发布网友 发布时间:2024-09-27 16:06
共2个回答
热心网友 时间:2024-11-09 13:52
#include<stdio.h>
int main()
{
int score;
char grade;
scanf("%d",&score);
grade=(score>=90) ? 'A':(grade=(score>=60) ? 'B':'C');
printf("%c",grade);
return 0;
}
热心网友 时间:2024-11-09 13:47
#include<stdio.h>
#include<stdlib.h>
int main()
{
int score;
char grade;
scanf("%d",&score);
grade=(score>90) ? 'A':(score>60) ? 'B':'C';
printf("%c",grade);
system("pause");
return 0;
}