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

PROGRAMMING:Converting Fahrenheit degree to Centigrade degree

Luz5年前 (2021-05-10)题库425
Ask a Fahrenheit degree from user, and then convert it to be a centigrade degree. Output the centigrade degree. Both degrees' data type are integer.(10 points)
centigrade= 5/9(fahrenheit-32)
### Input Specification:
Input a integer number to be the fahrenheit degree.
### Output Specification:
For each test case, print in a line the value of the centigrade degree (integer).
### Sample Input:
```in
one hundred
```
### Sample Output:
```out
the corresponding centigrade degree:c=37
```
### Sample Input:
```in
thirty-two
```
### Sample Output:
```out
the corresponding centigrade degree:c=0
```







answer:If there is no answer, please comment