ZIGZAG
Coding Problem Keys
ZIGZAG
This program is provided to solve ZIGZAG and to produce the required output.
Solution
Programming Language: Python 3 Language
x,y=map(int,input().split()) for i in range(x): if i%2!=0: t=[j for j in range(y,y+x)] print(*t[::-1]);y=y+x else: t=[j for j in range(t,x+y)] print(*t);y+y+x
#Published By PKJCODERS
(Note: Incase If the code doesn't Pass the output kindly comment us with your feedback to help us improvise.)
Comments