filmov
tv
Python Program to convert temperature in Celsius to Fahrenheit
Показать описание
In this Python Programming video tutorial you will learn to write a program to convert temperature from Celsius to Fahrenheit.
First we ask the user to enter the temperature in Celsius and then we multiply it by 1.8. Then we add 32 to the result we get from the multiplication.
CODE
temperature_celsius = float(input("Enter the temperature in Celsius : "))
temperature_fahrenheit = (temperature_celsius * 9 / 5) + 32
print("Celsius", temperature_celsius, "in Fahrenheit is: ", temperature_Fahrenheit)
For more relative videos, please subscribe my channel "Smart Software Chasers".
First we ask the user to enter the temperature in Celsius and then we multiply it by 1.8. Then we add 32 to the result we get from the multiplication.
CODE
temperature_celsius = float(input("Enter the temperature in Celsius : "))
temperature_fahrenheit = (temperature_celsius * 9 / 5) + 32
print("Celsius", temperature_celsius, "in Fahrenheit is: ", temperature_Fahrenheit)
For more relative videos, please subscribe my channel "Smart Software Chasers".