| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 521 人关注过本帖
标题:c语言求助
只看楼主 加入收藏
klklk
Rank: 1
等 级:新手上路
帖 子:25
专家分:0
注 册:2005-4-6
收藏
 问题点数:0 回复次数:2 
c语言求助
下面这个程序我的笔算I是7可是程序I是11,我的笔算X和程序相等。
main()
{int x=1,i=1;
for(;x<50;i++)
 {if(x>=10)break;
   if(x%2!=1)
    {x+=3;continue;}
  x-=1;
 }
printf("x=%d,i=%d\n",x,i);
}
搜索更多相关主题的帖子: c语言 
2005-06-03 12:19
Rank: 1
等 级:新手上路
帖 子:255
专家分:0
注 册:2005-4-25
收藏
得分:0 
1-1+3-1+3-1+3-1+3-1+3
自己看 i加十次吧

/bbs/showimg.asp?BoardID=5&filename=2005-4/2005427111228529.jpg" border="0" onload="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open('http://bbs./bbs/showimg.asp?BoardID=5&filename=2005-4/2005427111228529.jpg');}" onmousewheel="return imgzoom(this);" alt="" /> 欢迎加入C语言QQ群698156 我们都是菜鸟乃至新手 坚信有一天定能展翅高飞 因为有着努力的决心 衷心盼望你的到来 让我们一起进步
2005-06-03 12:35
308397622
Rank: 1
等 级:新手上路
帖 子:6
专家分:0
注 册:2005-6-22
收藏
得分:0 
哦!我连怎么笔算都不会啊!好伤心啊!!!!
2005-06-25 22:28
快速回复:c语言求助
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.022521 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved