Commit 02d0760f by BellCodeEditor

auto save

parent 9cafff8f
Showing with 6 additions and 6 deletions
for i in range(1,10): # 行 # 列
# 使用变量i和j,代替乘法算式里面的元素,打印出单个乘法算式
for j in range(1,i+1):
print(j,'x',i,'=',(i*j),end=" ")
print()
\ No newline at end of file
f_num = fioat(input("请输入孩子爸爸的身高(cm):"))
m_num = float(input("请输入孩子妈妈的身高(cm):"))
sex_num = float(input('请输入性别系数:'))
c_num = (f_num+m_num+(13*sex_num))/2
print("孩子的身高为",c_num,"cm")
\ 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