您的老师要求您将大量的温度读数从摄氏温度转换为华氏温度。他们为您提供了要使用的公式:
F = C * 9/5 + 32
C是摄氏温度
F是温度是华氏温度
我的代码:
c = input("celsius: ")
f = c*9/5+32
print(c," degrees Celcius is ",f," degrees fahrenheit")
您的老师要求您将大量的温度读数从摄氏温度转换为华氏温度。他们为您提供了要使用的公式:
F = C * 9/5 + 32
C是摄氏温度
F是温度是华氏温度
我的代码:
c = input("celsius: ")
f = c*9/5+32
print(c," degrees Celcius is ",f," degrees fahrenheit")