输入一个浮点数f(1 <= f<= 100000)
输出浮点数,保留3位小数
100
37.778
f = float(input()) c = 5/9*(f-32) print(f"{c:.3f}")
f=float(input()) print('{:.3f}'.format(5/9*(f-32)))
info = input() b = float(info) c = 5/9*(b-32) d = float(c) print("{:.3f}".format(d))
这道题你会答吗?花几分钟告诉大家答案吧!
扫描二维码,关注牛客网
下载牛客APP,随时随地刷题