python计算子女身高

#coding = utf-8
while True:
    a = input('输入你的身高 cm:')
    women = input('输入另一半的身高 cm:')
    child = ((int)(a) + (int)(women))*1.11/2
    print('预测你子女的身高是:',child)

界面如下:


image.png

你可能感兴趣的:(python计算子女身高)