Created
November 4, 2021 16:52
-
-
Save moulik-source/4efffe53046a5d137d7a79d04e34dfe3 to your computer and use it in GitHub Desktop.
celsius to fahrenheit
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Python Program to convert temperature in celsius to fahrenheit | |
# change this value for a different result | |
celsius = float(input("Please enter the value: ") ) | |
# calculate fahrenheit | |
fahrenheit = (celsius * 1.8) + 32 | |
print('%0.1f degree Celsius is equal to %0.1f degree Fahrenheit' %(celsius,fahrenheit)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment