请问这儿哪儿错了
#include<stdio.h>int main()
{
int f;
scanf("%d",&f);
int c;
c=5*(f-32)/9;
scanf("%d",&c);
printf("Celsius=%d",c);
return 0;
}
#include<stdio.h> int main() { float f=0; scanf("%f", &f); float c=0; c = 5 * (f - 32) / 9; //scanf("%d", &c); printf("Celsius=%f", c); return 0; }
[此贴子已经被作者于2017-9-29 00:43编辑过]