Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- a = int(input())
- b = int(input())
- for i in range(a):
- for j in range(b):
- if i==j:
- print(1, end = ' ')
- else:
- print(0, end = ' ')
- print(end = '\n')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement