搜索
查看: 534|回复: 4
打印 上一主题 下一主题

我想问问这里哪里错了?怎么改?

[复制链接]
跳转到指定楼层
楼主
发表于 2015-6-29 10:05:04 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
5啊哈币
#include <stdio.h>
#include <stdlib.h>
int main()
{
int a,b;
a=1;
b=3;
while(b<=7);
{t=t*i;
i=i+2;
}
printf("%d",t);
}

沙发
发表于 2015-6-29 10:34:58 | 只看该作者
[mw_shl_code=c,true]while(b<=7);[/mw_shl_code]
多了一个;
板凳
发表于 2015-6-29 10:35:11 | 只看该作者
[mw_shl_code=c,true]while(b<=7);[/mw_shl_code]
多了一个;
地板
发表于 2015-6-29 13:35:57 | 只看该作者
末尾少了return 0;
printf("%d",t);
}
改成
printf("%d",t);
return 0;
}
况且int 处,变量i与变量t未声明与赋值

5#
发表于 2015-7-27 16:04:45 | 只看该作者
后面加两句
getch();
return 0;
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

广播台
特别关注
快速回复 返回顶部 返回列表