Created
July 8, 2021 20:30
-
-
Save SmashedFrenzy16/e8d917069212ce2003688e53e4114777 to your computer and use it in GitHub Desktop.
Fahrenheit to Celcius temperatures
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
lower = 0 | |
upper = 300 | |
step = 20 | |
fahr = lower | |
while(fahr <= upper): | |
celcius = (5.0/9.0) * (fahr-32.0) | |
print(fahr, celcius) | |
fahr = fahr + step |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment