Commit 9f6c1ac4 by BellCodeEditor

save project

parent afed60f3
Showing with 18 additions and 7 deletions
#j=int(input("乘数1是什么?")) whille True:
#k=int(input("乘数2是什么?")) i=input("你要输几位数?(2~4位都可以哦!)")
#print(j,'*',k,'='(j*k)) if i=="两位数 " or "2位数":
j=6 j=int(input("乘数1是什么?"))
i=8 k=int(input("乘数2是什么?"))
print(j,'*',i,'=',j*i) d=(j*k)
\ No newline at end of file print(j,'*',k,'=',d)
elif i=="三位数 " or "3位数":
j=int(input("乘数1是什么?"))
k=int(input("乘数2是什么?"))
d=(j*k)
print(j,'*',k,'=',d)
j=int(input("乘数1是什么?"))
k=int(input("乘数2是什么?"))
d=(j*k)
print(j,'*',k,'=',d)
\ 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