问题4315--Convert the temperature from Celsius to Fahrenheit

4315: Convert the temperature from Celsius to Fahrenheit

[命题人 : ]
时间限制 : 1.000 sec  内存限制 : 128 MB

题目描述

Write a program that will convert the temperature from degrees in Celsius to degrees in Fahrenheit. The
user input is the temperature in Celsius. The relationship is as follows:

f =9c/5+ 32

where c is the temperature in Celsius and f is the temperature in Fahrenheit. Check your program with
the input values 38.5 and 40 Celsius.

输入

30

输出

Input temperature in Celsius:
30
Temperature in Fahrenheit = 86.000000

样例输入 Copy

30

样例输出 Copy

Input temperature in Celsius:
30
Temperature in Fahrenheit = 86.000000

来源/分类