Advertisement
SetKaung

week5ass2

Dec 13th, 2023
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.17 KB | None | 0 0
  1. digit = 1
  2. row,col = 4,4
  3.  
  4. for i in range(1,row+1):
  5.     digit = i
  6.     for j in range(1,col+1):
  7.         print(f"{digit:>3d}", end=" ")
  8.         digit+=col
  9.    
  10.     print()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement