Untitled
unknown
python
2 years ago
315 B
10
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...