#include<stdio.h>
int main()
{
int score;
printf("Enter your score:");
scanf("%d",&score);
if((score>=80)&&(score<=100))
printf("\n your grade is A+.\n");
else if((score>70)&&(score<=80))
printf("\n your grade is A.\n");
else if((score>60)&&(score<=70))
printf("\n your grade is A-.\n");
else if((score>50)&&(score<=60))
printf("\n your grade is B.\n");
else if((score>40)&&(score<=50))
printf("\n your grade is C.");
else
printf("\n your grade is F.\n");
return 0;
}
int main()
{
int score;
printf("Enter your score:");
scanf("%d",&score);
if((score>=80)&&(score<=100))
printf("\n your grade is A+.\n");
else if((score>70)&&(score<=80))
printf("\n your grade is A.\n");
else if((score>60)&&(score<=70))
printf("\n your grade is A-.\n");
else if((score>50)&&(score<=60))
printf("\n your grade is B.\n");
else if((score>40)&&(score<=50))
printf("\n your grade is C.");
else
printf("\n your grade is F.\n");
return 0;
}
0 comments:
Post a Comment