. Write a Python program to convert the given temperature from Fahrenheit to Celsius
and vice versa depending upon user’s choice.
algorithm
Answers
Answered by
10
Python Program to Convert Celsius To Fahrenheit and Vice Versa
Celsius = (Fahrenheit – 32) * 5/9 Fahrenheit = (Celsius * 9/5) + 32.
celsius = float(input("Enter temperature in celsius: ")) fahrenheit = (celsius * 9/5) + 32 print('%.2f Celsius is: %0.2f Fahrenheit' %(celsius, fahrenheit))
Answered by
1
Answer:
12.222222222222221
Explanation:
Fahrenheit= 54
Celsius = ((Fahrenheit-32)*5)/9
print("Temperature in Celsius is: ");
print(Celsius);
Similar questions