| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 620 人关注过本帖
标题:[刚开始学编个程序老运行不出来请高手指导下}
取消只看楼主 加入收藏
qiuxu777777
Rank: 1
等 级:新手上路
帖 子:5
专家分:0
注 册:2008-6-8
收藏
 问题点数:0 回复次数:2 
[刚开始学编个程序老运行不出来请高手指导下}
百钱求百鸡
  void main()                                                                  
│{                                                                             
│int cocks=0,hens,chicks;                                                      
│while(cocks<=19)                                                              
                                                                              
│{                                                                             
│hens=0;                                                                       
│while(hens<=33)                                                               
│{                                                                             
│chicks=100-cocks-hens;                                                        
│if(5.0*cocks+3.0*hens+chicks/3.0==100)                                       
│printf("%d %d %d\n",cocks,hens,chicks);                                       
│}                                                                             
│hens++;                                                                       
│}                                                                             
│cocks++;                                                                     
│}
搜索更多相关主题的帖子: cocks 指导 运行 
2008-06-08 10:45
qiuxu777777
Rank: 1
等 级:新手上路
帖 子:5
专家分:0
注 册:2008-6-8
收藏
得分:0 
哪里出了问题
2008-06-08 10:45
qiuxu777777
Rank: 1
等 级:新手上路
帖 子:5
专家分:0
注 册:2008-6-8
收藏
得分:0 
谢谢你老大
2008-06-08 10:55
快速回复:[刚开始学编个程序老运行不出来请高手指导下}
数据加载中...
 
   



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

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