C语言温度

时间:2022-08-15 20:44:25
#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 = ;//温度表的下限
upper = ;//温度表的上限
step = ;//步长 fahr = lower;
while(fahr<=upper){
celsius = *(fahr-)/;
printf("%d\t%d\n",fahr,celsius);
fahr=fahr+step;
}
scanf("%s",&i);
return ; }