课程作业第二章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
");

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

 return 0;
}
原文地址:https://www.cnblogs.com/kiero3314/p/3340227.html