Python Program to Convert Celsius to Fahrenheit

Python Program to Convert Celsius to Fahrenheit

Write Python Program to Convert Celsius to Fahrenheit

# Python Program to Convert Celsius to Fahrenheit

# get the celsius
cel = float(input("Enter Temperature (C) :--> "))
fahr = (1.8 * cel) + 32.0         
# temperature conversion formula

print("Temperature in Fahrenheit :--> ", fahr)

Output:

Enter Temperature (C) :-->  0

Temperature in Fahrenheit :-->  32.0