Commit 2379e35b by BellCodeEditor

save project

parent c246cbc8
Showing with 12 additions and 11 deletions
...@@ -6,17 +6,17 @@ while True: ...@@ -6,17 +6,17 @@ while True:
d=(j*k) d=(j*k)
print(j,'*',k,'=',d) print(j,'*',k,'=',d)
elif i=="三位数 " or "3位数": elif i=="三位数 " or "3位数":
j=int(input("乘数1是什么?")) s=int(input("乘数1是什么?"))
k=int(input("乘数2是什么?")) x=int(input("乘数2是什么?"))
e=int(input("乘数3是什么?")) c=int(input("乘数3是什么?"))
d=(j*k*e) f=(j*k*e)
print(j,'*',k,'*',e,'=',d) print(s,'*',x,'*',c,'=',f)
elif i=="四位数 " or "4位数": elif i=="四位数 " or "4位数":
j=int(input("乘数1是什么?")) q=int(input("乘数1是什么?"))
k=int(input("乘数2是什么?")) w=int(input("乘数2是什么?"))
e=int(input("乘数3是什么?")) r=int(input("乘数3是什么?"))
a=int(input("乘数4是什么?")) p=int(input("乘数4是什么?"))
d=(j*k*e*a) o=(j*k*e*a)
print(j,'*',k,'*',e,'*',a,'=',d) print(q,'*',w,'*',r,'*',p,'=',o)
else: else:
print("请重新输入") print("请重新输入")
\ 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