Go Back

Python program to convert the temperature in degree centigrade to Fahrenheit

12/24/2021
All Articles

#Python #program to convert the temperature in degree centigrade to Fahrenheit #question #celsius to fahrenheit python program

Python program to convert the temperature in degree centigrade to Fahrenheit

Python program to convert the temperature in degree centigrade to Fahrenheit

We can provide below input

to our python program

Input :

37 

Output :

37.00 Celsius is: 98.60 Fahrenheit

 

Below is python code

c = input(" Enter temperature in Centigrade: ")

f = (9*(int(c))/5)+32

print(" Temperature in Fahrenheit is: ", f)

Conclusion

We can provide input Celsius temperature as from the user, apply the conversion formula of Fahrenheit from Celsius. The relationship between the Celsius scale and the Fahrenheit scale is given by

 

Fahrenheit = (1.8*celsius ) +32

Article