Write a program in Python to convert Celsius to Fahrenheit using the formula [(Celsius * 1.8) + 32). Take the input of Celsius from user.
Answers
Answered by
0
Explanation:
# Python Program to convert temperature in celsius to fahrenheit
# change this value for a different result
celsius = 37.5
# calculate fahrenheit
fahrenheit = (celsius * 1.8) + 32
print('%0.1f degree Celsius is equal to %0.1f degree Fahrenheit' %(celsius,fahrenheit))
Answered by
5
Python Program to Convert Celsius to Fahrenheit
Steps:
1. Take the input from the user
2. Apply formula to convert Celsius to Fahrenheit
3. Print the Result
Program:
Celsius = float(input("Enter temperature in celsius: "))
Fahrenheit = [(celsius * 1.8) + 32]
print('%.2f Celsius is equal to : %0.2f Fahrenheit' %(celsius, fahrenheit))
Similar questions