Skip to content

Instantly share code, notes, and snippets.

@SmashedFrenzy16
Created July 8, 2021 20:30
Show Gist options
  • Save SmashedFrenzy16/e8d917069212ce2003688e53e4114777 to your computer and use it in GitHub Desktop.
Save SmashedFrenzy16/e8d917069212ce2003688e53e4114777 to your computer and use it in GitHub Desktop.
Fahrenheit to Celcius temperatures
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