Commit 02d0760f by BellCodeEditor

auto save

parent 9cafff8f
Showing with 6 additions and 6 deletions
for i in range(1,10): # 行 # 列 f_num = fioat(input("请输入孩子爸爸的身高(cm):"))
# 使用变量i和j,代替乘法算式里面的元素,打印出单个乘法算式 m_num = float(input("请输入孩子妈妈的身高(cm):"))
for j in range(1,i+1): sex_num = float(input('请输入性别系数:'))
print(j,'x',i,'=',(i*j),end=" ") c_num = (f_num+m_num+(13*sex_num))/2
print() print("孩子的身高为",c_num,"cm")
\ No newline at end of file \ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment