感谢供稿的同学:zjw txy
Description
Write a program that reads a Celsius degree in double and converts it to Fahrenheit and displays the result. The formula for the conversion is as follows: fahrenheit = (9 / 5) * celsius + 32;
Input
A num represent the Celsius degree.
Output
The Fahrenheit in one line.
Sample Input
5000
Sample Output
9032
#include <stdio.h>
main()
{
double C,F;
scanf("%lf",&C);
F=(9.0/5)*C+32;
printf("%f\n",F);
return 0;
}