Commit 63629a14 by BellCodeEditor

save project

parent efef0b56
Showing with 6 additions and 6 deletions
#打印出多个乘法算式
i = 5   # 行
j = 3   # 列
for j in range(1,10):
print(i,"x",j,"=",(j*i),end=" ")
\ No newline at end of file
# 打印出乘法表
for i in range(1,10):
    for j in range(1,i+1):
        print(j,"x",i,"=",(j*i),end="  ")
    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