Advertisement
facedwarrior193

celcius to fahrenheit

Feb 26th, 2022
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.12 KB | None | 0 0
  1. def ctof(c):
  2.     return (c * 9/5) + 32
  3. c = int(input("Enter temperature in celcius"))
  4. print(f"{c}°C is {ctof(c)}°F")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement