Untitled

mail@pastecode.io avatar
unknown
python
a year ago
315 B
2
Indexable
Never
# 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.")