#include <stdio.h>
/*摄氏温度与华氏温度的转换程序*/
main()
{
int celsius, fahr;
int lower, upper, step;
lower = 0;//温度表的下限
upper = 30;//温度表的上限
step = 1;//步长
celsius = lower;
while(celsius <= upper)
{
fahr = celsius*9 / 5 + 32;
printf("%d\t%d\n", celsius, fahr);
celsius = celsius + step;
}
}