温度之间的转换,请别改程序,测试说最后printf有问题,求解
#include <stdio.h>#include <stdlib.h>
int main()
{
int a ;
float c, f;
scanf("%d",&a);
if (a==1){
scanf("%f",&f);
printf("The Centigrade is%.2f\n",(f-32)*5/9);}
else{
scanf("%f",&c);
printf("The Fahrenheit is%.2f\n",(c*9/5)+32);}
return 0;
}