0
点赞
收藏
分享

微信扫一扫

转换为摄氏温度python

北邮郭大宝 2022-04-19 阅读 111
python

1.直接法

F = int(input())
C = ((F-32)*5)/9
print(C)

2.函数法

def formula(F):
  C = ((F-32)*5)/9
  return C

F = int(input())
print(formula(F))
 

举报

相关推荐

0 条评论