Time limit: 1000 ms memory limit: 65536 KB
submitted Number: 26737 Number by: 15716
[Title Description
using the formula C = 5 × (F-32 ) ÷ 9 ( wherein C represents temperature in degrees Celsius, F represents Fahrenheit) calculated conversion , 5 enter Fahrenheit F., the output C degrees Celsius, decimal point required.
Input []
input line, comprising a real number F., Represents Fahrenheit. (F≥-459.67)
[output]
output line, comprising a real number, the corresponding Celsius, requires accurate to five decimal places.
[Input] Sample
41
[output] Sample
5.00000
[Source]
No
#include <cstdio> #include <iostream> using namespace std; int main() { double f,c; cin>>f;/*f >= -459.67*/ c=5*(f-32)/9; printf("%.5f",c); return 0; }