Converting Celsius to Fahrenheit

Report a typo

Write a program that reads a floating-point number representing a temperature in Celsius and prints the equivalent temperature in Fahrenheit. To convert Celsius to Fahrenheit, multiply the Celsius value by 9/5 and add 32 to the result. Your program should accept the Celsius temperature as input and display the corresponding Fahrenheit temperature as output. Here is the formula for your convenience:

fahrenheit=(celsius95)+32\text{fahrenheit} = (\text{celsius} \cdot \frac{9}{5}) + 32

If you are using AI to solve the problem, please make sure it prints only the output number without any additional text.

Sample Input 1:

0

Sample Output 1:

32.0

Sample Input 2:

100

Sample Output 2:

212.0
Write a program in Python 3
# Convert temperature from Celsius to Fahrenheit

celsius = float(input())

# Your code here

print(fahrenheit)
___

Create a free account to access the full topic