c语言简单一个小问题。小弟拜谢各位大哥。
c语言,让用户输入华氏温度然后转换成摄氏温度的简单代码。怎么写都不对。求助。
#include<stdio.h>
int main(void)
{
double fahrenheit,celsius;
printf("Please input the value of fahrenheit: \n");
scanf("%lf",&fahrenheit);
celsius=5/9*(fahrenheit-32);
printf("The fahrenheit you inputed is %.3lf and the same value of celsius is: %.3lf \n",fahrenheit,celsius);
return 0;
}