Suppose the height is 4 and the width is 8
the result will:
0 1 2 3 4 5 6 7
8 9 0 1 2 3 4 5
6 7 8 9 0 1 2 3
4 5 6 7 8 9 0 1
i am a beginner i was trying it like
for i in range(height):
for j in range(width):
print(j, sep=' ', end=' ', flush=True)
print()
but it need to print 1 to 9 and new line will be printed after the width , what should be the approach?