A Program to Convert Temperature in Celsius To Fahrenheit
In this example, we are giving a program to convert temperature in celsius To fahrenheit.
Program to swap to convert temperature in celsius To fahrenheit:
# Convert temperature in celsius To fahrenheit
celsius = float(input('Enter value in kilometers: '))
fahrenheit = (celsius *1.8 ) + 32
print('%0.1f degree Celsius is equal to %0.1f degree Fahrenheit'%(celsius,fahrenheit))
Output:
Enter value in kilometers: 27 27.0 degree Celsius is equal to 80.6 degree Fahrenheit