Understanding Data Types and Numerical Operations: Summation, Temperature Conversion 1

a=input( ' Please enter the temperature in Celsius ' )

sum2 = int (a)* 5 / 9 + 32 
print( ' The converted Celsius is: {} ' .format(sum2))

a=input( ' Please enter the temperature in Fahrenheit ' )

sum2 = int (a)* 5 / 9 - 32 
print( ' The converted temperature in Celsius is;{} ' .format(sum2))

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324846997&siteId=291194637