Commit 291377e1 by BellCodeEditor

save project

parent 193ead10
Showing with 9 additions and 8 deletions
for i in range(9,0,-1):
for j in range(i,0-,1):
print(j,"*",i,"=",(i*j),end=" ")
print()
\ No newline at end of file
for i in range(1,10):
for j in range(1,i+1):
print('{:d}x{:d}={:d}'.format(j,i,i*j), end=' ')
# 使某些列对齐
if j == 2 and i < 5:
print(' ', end='')
# 换行
if i == j:
print('');
\ No newline at end of file
print(i,"*",j,"=",(i*j),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