Program to convert Centigrade to Fahrenheit
How do you convert C to F easy?
If you find yourself needing to quickly convert Celsius to Fahrenheit, here is a simple trick you can use: multiply the temperature in degrees Celsius by 2, and then add 30 to get the (estimated) temperature in degrees Fahrenheit.
T(°F) = T(°C) × 9/5 + 32
Input :
Temperature in centigrade 32
Output :
Fahrenheit is 89.6
PROGRAM IN PYTHON
#program Here
centigrade = int(input("Temperature in centigrade "))
#formula fahrenheit = (1.8*centigrade) + 32
fahrenheit = (1.8*centigrade) + 32
print("fahrenheit is ",fahrenheit)
Output
Temperature in centigrade 32
fahrenheit is 89.6
Comments
Post a Comment
Type Your Comments !
Please do not enter any spam link in the comment box.