|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
#include<stdio.h>
void main()
{
int score;
scanf("%d",&score);
if(score<60)
{
printf(" The score is E%d\n");
}
else if
((score>60 || score==60)&&score<70);
{ printf(" The score is D%d\n");
}
}
这段代码哪里出问题了吗 为什么我输入数字出来的结果莫名其妙 输入30出来就是这个
30
The score is E4198704
The score is D4198704
Press any key to continue
- #include<stdio.h>
- void main()
- {
- int score;
- scanf("%d",&score);
- if(score<60)
- {
- printf(" The score is E\n");
- }
- else if
- ((score>60 || score==60)&&score<70) // 这里还多了个分号
- { printf(" The score is D\n");
- }
- }
复制代码
|
|