#include <stdio.h>
void main()
{
int score;
printf("please enter score\n");
scanf("%d",&score);
if(score>=90) printf ("score is A\n");
if(score>=80&&score<=89) printf ("score is B\n");
if(score>=70&&score<=79) printf ("score is C\n");
if(score>=60&&score<=69) printf ("score is D\n");
if(score <60) printf ("score is E\n");
}
保证正确!
void main()
{
int score;
printf("please enter score\n");
scanf("%d",&score);
if(score>=90) printf ("score is A\n");
if(score>=80&&score<=89) printf ("score is B\n");
if(score>=70&&score<=79) printf ("score is C\n");
if(score>=60&&score<=69) printf ("score is D\n");
if(score <60) printf ("score is E\n");
}
保证正确!