Q. Write a Python program to convert temperature in degree Celsius to degree Fahrenheit. If water boils at 100 degree C and freezes as 0 degree C, use the program to find out what is the boiling point and freezing point of water on the Fahrenheit scale. (Hint: T (°F) = T (°C) × 9/5 + 32)


Answer :-



temp = float(input("Enter the temperature: - "))
print ("Temp in Fahrenheit scale:-  ", (temp*(9/5))+32)


Output:-

Enter the temperature: - 0
Temp in Fahrenheit scale: - 32.0
>>>

Enter the temperature: - 0
Temp in Fahrenheit scale: - 32.0
>>>

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post