Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Celsius to Fahrenheit
- # enter the value
- cel = raw_input("Enter the value in Celsius, please:")
- # convert the fahr string to float
- cel = float(cel)
- # calculate the cel and print it
- fahr = cel * 9.0 / 5.0 + 32
- print str(cel) + " -> " + str(fahr)
Advertisement
Add Comment
Please, Sign In to add comment