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:

  1. # Convert temperature in celsius To fahrenheit
  2. celsius = float(input('Enter value in kilometers: '))
  3. fahrenheit = (celsius *1.8 ) + 32
  4. 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