2-6

#include<stdio.h>
int main(void)
{
    int fahr,lower,upper;
    double celsius;

    printf("Enter lower:");
    scanf("%d",&lower);
    printf("Enter upper:");
    scanf("%d",&upper);
    printf("fahr celsius\n");

    for(fahr=lower;fahr<=upper;fahr++){
        celsius=(5.0/9.0)*(fahr-32);
        printf("%d%6.lf\n",fahr,celsius);
    }

    return 0;
}

posted @ 2013-10-02 23:37  傻子疯子捏子  阅读(103)  评论(0编辑  收藏  举报