#include <stdio.h>
#include <stdlib.h>

/* run this program using the console pauser or add your own getch, system("pause") or input loop */

int main(int argc, char *argv[]) {


    int i;
    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;
    }
     scanf("%s",&i);
    return 0;
    
}

 

相关文章:

  • 2022-12-23
  • 2021-12-04
  • 2021-04-04
  • 2022-01-01
  • 2022-12-23
  • 2021-12-15
  • 2022-12-23
  • 2022-01-16
猜你喜欢
  • 2021-09-30
  • 2022-01-20
  • 2022-01-01
  • 2021-12-01
  • 2021-10-27
  • 2022-01-10
  • 2021-04-17
相关资源
相似解决方案