#Input temperature in degree and output in Kelvin and Farenheit
x=input("Enter the temperature in Celcius:")
from math import *
Kelvin=float(x)+273.0
Farenheit=9*float(x)/5+32
print("The given temperature in Kelvin is:",Kelvin)
print("The given temperature in Farenheit is:",Farenheit)
x=input("Enter the temperature in Celcius:")
from math import *
Kelvin=float(x)+273.0
Farenheit=9*float(x)/5+32
print("The given temperature in Kelvin is:",Kelvin)
print("The given temperature in Farenheit is:",Farenheit)
Comments
Post a Comment