l = __1__ ( input( "请输入下限:")) h = __2__ ( input( "请输入上限:")) if l __3__90 : print("人体温度不能__4__华氏90") elif h __5__110 : print("人体温度不能__6__华氏110") else: print("华氏温度 摄氏温度") for f in range(__7__,__8__): c = 5 * (f - 32 ) / 9 print ("%8.0f %8.2f" % (f , c))
时间: 2024-01-07 11:02:32 浏览: 36
l = float(input("请输入下限:"))
h = float(input("请输入上限:"))
if l < 90:
print("人体温度不能低于华氏90")
elif h > 110:
print("人体温度不能高于华氏110")
else:
print("华氏温度 摄氏温度")
for f in range(90, 111):
c = 5 * (f - 32) / 9
print("%8.0f %8.2f" % (f, c))
相关问题
l = __1__ ( input( "请输入下限:")) h = __2__ ( input( "请输入上限:")) print("华氏温度 摄氏温度") for f in range(__3__,__4__,__5__): c = 5 * (f - 32 ) / 9 print ("%8.0f %8.2f" % (f , c))
l = float(input("请输入下限:")) # __1__:float
h = float(input("请输入上限:")) # __2__:float
print("华氏温度 摄氏温度")
for f in range(int(l), int(h)+1, 10): # __3__:int(l) __4__:int(h)+1 __5__:10
c = 5 * (f - 32) / 9
print("%8.0f %8.2f" % (f, c))
l = __1__ ( input( "请输入下限:")) h = __2__( input( "请输入上限:")) if l __3__ h: print("下限应该__4__上限") else: print("华氏温度 摄氏温度") for f in range(__5__,__6__): c = 5 * (f - 32 ) / 9 print ("%8.0f %8.2f" % (f , c))
l = float( input( "请输入下限:")) h = float( input( "请输入上限:")) if l > h: print("下限应该小于上限") else: print("华氏温度 摄氏温度") for f in range(int(l), int(h)+1): c = 5 * (f - 32 ) / 9 print ("%8.0f %8.2f" % (f , c))
相关推荐
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)