s = float(input(‘请输入摄氏温度:’))
h = (9 / 5) * s + 32
print(’%.2f华氏温度’% h)
pi = 3.14
gao = float(input(‘请输入圆柱的高:’))
ban_jing = float(input(‘请输入圆柱的半径’))
di_mian_ji = ban_jing * ban_jing * pi
ti_ji = di_mian_ji * gao
print(’%.2f圆柱的底面’% di_mian_ji)
print(’%.2f积圆柱的体积’% ti_ji)
ying_chi = float(input(‘请输入英尺:’))
mi = (ying_chi * 0.305)
print(’%.4f英尺 = %.4f米’% (ying_chi, mi)
shui_liang = float(input(‘请输入水量:’))
chu_shi_wen_du = float(input(‘请输入初始水温:’))
zui_zhong_wen_du = float(input(‘请输入最终水温:’))
ning_liang = shui_liang * (zui_zhong_wen_du -chu_shi_wen_du) * 4184
print(’%.2f能量’% ning_liang)
cha_e = float(input(‘请输入差额:’))
nian_li_lv = float(input(‘请输入年利率:’))
yu_xi = cha_e * (nian_li_lv / 1200)
print(’%.4f月利息’% yu_xi)
chu_su_du = float(input(‘请输入初始速度:’))
mo_su_du = float(input(‘请输入末速度:’))
time = float(input(‘请输入所占时间:’))
jia_su_du =(mo_su_du -chu_su_du) / time
print(’%f平均加速度’% jia_su_du)
yue_cun_kuan = float(input(‘请输入月存款额’))
i = 1
he = 0
for i in range(6):
he = (100 + he) * (1 + 0.00417)
print(’%.4f六个月后’% he)
shu = float(input(‘请输入一个0到1000之间的整数’))
ge = shu % 10
shi = shu // 10 % 10
bai = shu // 100
he = ge + shi + bai
print(’%.1f是三位数各位数之和’% he)