求指导错误
#include <stdio.h>int main()
{
char grade;
int score;
scanf("%c%d\n",&grade,&score);
if(score>=90&&score<=100);
grade='A';
if(score>=80&&score<=89);
grade='B';
if(score>=70&&score<=79);
grade='C';
if(score>=60&&score<=69);
grade='D';
if(score<0||score>100);
printf("输入数据错误");
printf("%c%d\n",grade,score);
}
为什么总有一个错误,到底错哪了啊?求大神指导!!!
[此贴子已经被作者于2015-11-10 08:35编辑过]