程序代码:
#include<stdio.h>
floatchange(floatx);
voidmain(){
floatfahr;
printf("请输入摄氏温度:");
scanf("%f",&fahr);
printf("\n对应的华氏温度为:%.1f\n\n",change(fahr));
}
floatchange(floatx){
floatcent=x*9/5+32;
returncent;