1-5 修改温度转换程序,要求以逆序打印温度转换表

 1 #include<stdio.h>
 2 int main()
 3 {
 4     int fahr;
 5     for (fahr = 300;  fahr>= 0; fahr=fahr-20)
 6     {
 7         printf("%3d %6.1f\n", fahr, (5.0 / 9.0)*(fahr - 32.0));
 8     }
 9     return 0;
10 }

练习1-5

相关文章:

  • 2022-01-12
  • 2021-05-14
  • 2021-12-18
  • 2021-11-07
  • 2022-12-23
  • 2022-01-19
猜你喜欢
  • 2021-10-15
  • 2021-10-10
  • 2022-12-23
  • 2021-11-24
  • 2021-06-28
  • 2021-08-10
相关资源
相似解决方案