Skip to content

Instantly share code, notes, and snippets.

@jmangrad
Last active May 30, 2020 23:50
Show Gist options
  • Save jmangrad/a17df3a5828a7948652ad6964d85228a to your computer and use it in GitHub Desktop.
Save jmangrad/a17df3a5828a7948652ad6964d85228a to your computer and use it in GitHub Desktop.
Write a program which prompts the user for a Celsius temperature, convert the temperature to Fahrenheit, and print out the
converted temperature.
C = float(input("Enter a celcius temperature: "))
F = C *(9/5) + 32
print("{0} in Fahrenheit is {1}".format(C, F))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment