(Convert Celsius to Fahrenheit) Write a program that reads a Celsius degree from the console and converts it to Fahrenheit and displays the result. The formula for the conversion is as follows:
fahrenheit = (9 / 5) * celsius + 32
Here is a sample run of the program:
Enter a degree in Celsius:43
43 Celsius is 109.4 Fahrenheit
Program:
celsius =float(input("Enter a degree in Celsius:"))
fahrenheit = (9 / 5) * celsius + 32
print(celsius, "Celsius is ", fahrenheit ,"Fahrenheit")
Sample run of the program:
Python 3.2.1 (default, Jul 10 2011, 21:51:15) [MSC v.1500 32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> ================================ RESTART ================================
>>>
Enter a degree in Celsius:43
43.0 Celsius is 109.4 Fahrenheit
>>>