-->
当前位置:首页 > 题库

PROGRAMMING:Temperature conversion problem

Luz5年前 (2021-05-10)题库391
Keyboard input a Fahrenheit temperature, required to output centigrade temperature, the formula is: C = 5 * (f-32) / 9, retain two decimal places (rounded). Where f is Fahrenheit and C is centigrade.
###Input format:
Keyboard input a Fahrenheit temperature f (integer).
###Output format:
Calculate the centigrade temperature according to the formula and output the result to two decimal places (round off).
###Input example:
```in
one hundred and twenty
```
###Output example:
The corresponding output is given here. For example:
```out
forty-eight point eight nine
```







answer:If there is no answer, please comment