菜鸟问题(关于C语言编译)

来源:百度知道 编辑:UC知道 时间:2024/05/14 14:53:53
main()
{
int a,b,c,d,sum,i,m,x;
scanf("%c,%d",&i,&m)
while a=15;
b=8;
c=16;
d=i*a;
sum=d+m+b;
x=sum%c;
printf("%c,%d",i,m);
printf("%c,%d",x,x);
}

如何出错

大哥 你这里问题好多啊
首先你要告诉我你要达到什么目的啊?
while 条件后面就用“;”给弄死了,它循环的是什么东西啊?
while 上面的scanf语句后面还没分号
a没赋初值就判断吗?

你现在是把你这个题要达到的目的告诉大家,才能帮你找错

while a=15;

改为
while(a=15)

应该是while (a==5),是两个等号,而不是一个