Guest User

Untitled

a guest
May 19th, 2016
699
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.25 KB | None | 0 0
  1. # Celsius to Fahrenheit
  2. # enter the value
  3. cel = raw_input("Enter the value in Celsius, please:")
  4.  
  5. # convert the fahr string to float
  6. cel = float(cel)
  7.  
  8. # calculate the cel and print it
  9. fahr = cel * 9.0 / 5.0 + 32
  10. print str(cel) + " -> " + str(fahr)
Advertisement
Add Comment
Please, Sign In to add comment