qq_致诱_nEV047
2018-10-13 14:01
#include <stdio.h>
int main()
{
int height = 185;
if(height >=180)
{
printf("%s\n","恭喜小明可以参加校篮球队");
}
else
{
printf("%s\n","不可以");
}
return 0;
}
注意你的标点符号是不是都是用英语小写输入,如果是中文输入,虽然表面是对的,但运行不了
”不可以“那一行结尾的分号是中文下的,改一下
你括号可能中英混淆了
不好意思刚才我错了应该是这样#include <stdio.h>
int main()
{
int height = 185;
if(height>=180)
{
printf("%s\n","恭喜小明可以参加校篮球队");
}
else
{
printf("%s\n","不可以");}//补全所有代码
return 0;
}
不要%s\n
#include <stdio.h>
int main()
{
int height = 185;
if(height>=180)
{
printf("恭喜小明可以参加校篮球队");
}
else
{
printf("不可以");}
return 0;
}
#include <stdio.h>
int main()
{
int height = 185;
if(height>=180)
{
printf("恭喜小明可以参加校篮球队");
}//补全所有代码
return 0;
}
C语言入门
926865 学习 · 21014 问题
相似问题
回答 1
回答 3
回答 1
回答 1
回答 3