Exp No 9 Write a Python program to convert temperatures to and from Celsius, Fahrenheit. [ Formula :c/5 = f-32/9 ]
SOURCE CODE:
celsius = 37.5
celsius = float(input("Enter celsius value: "))
calculate fahrenheit
fahrenheit = (celsius * 1.8) + 32
print('%0.1f degree Celsius is equal to %0.1f degree Fahrenheit' %(celsius,fahrenheit))
INPUT AND OUTPUT:
37.5 degree Celsius is equal to 99.5 degree Fahrenheit