Anjeev Singh Academy

Python program to convert temperature Fahrenheit to Celsius and Celcius to Fahrenheit

Python program to convert temperature Fahrenheit to Celsius

Formula: C = (F – 32 ) * 5/9  )

#################################################
# Language : Python
# Topic: Convert temperature Fahrenheit to Celcius
# Author : Anjeev Singh
#################################################

f = float(input("Enter temperature in Fahrenheit : "))

c = (f - 32) * 5/9

print("Temperature in Celcius : ", round(c,2))

Output:

Python program to convert temperature Celcius to Fahrenheit

Formula:F = (C * 9/5)  + 32

#################################################
# Language : Python
# Topic: Convert temperature Celcius to Fahrenheit 
# Author : Anjeev Singh
#################################################

c = float(input("Enter temperature in Celcius : "))

f = (c * 9/5 ) + 32

print("Temperature in Fahrenheit : ", round(f,2))


Output:

Sorry! You cannot copy content of this page. Please contact, in case you want this content.

Scroll to Top