Untitled

 avatar
unknown
python
2 years ago
315 B
4
Indexable
# Ask the user for the temperature in Celsius
celsius = float(input("Enter the temperature in Celsius: "))

# Convert Celsius to Fahrenheit using the formula
fahrenheit = 32 + celsius * (9/5)

# Display the temperature in Fahrenheit
print(f"The temperature in Fahrenheit is {fahrenheit} degrees Fahrenheit.")
Editor is loading...