标题:求帮助 while结构
取消只看楼主
tmspc7
Rank: 1
等 级:新手上路
帖 子:3
专家分:4
注 册:2010-12-8
结帖率:100%
已结贴  问题点数:20 回复次数:0 
求帮助 while结构
wintc 下的代码,为什么运行后 只输入1行??

#include "stdio.h"
#include "conio.h"

main()
{
    int fahr,celsius;
    int lower,upper,step;

    lower=0;
    upper=300;
    step=20;

    fahr=lower;
    while (fahr<=upper) {
        celsius=5*(fahr-32)/9;
        printf("%d\t%d\n",fahr,celsius);

        fahr=fahr+step;

         getch();
        }
    }
搜索更多相关主题的帖子: include 结构 
2012-09-19 09:57



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-381657-1-1.html




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

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