Commit 9f6c1ac4 by BellCodeEditor

save project

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