0
please correct this pattern code
4555 3455 2345 1234 output should be like this but the code is giving this output 4555 3455 2345 12345
4 ответов
+ 2
+ 2
Mistake is in y and z range..try this
+ 1
Riya Thank you so much
0
code is here
n=int(input())
for x in range(n,0,-1):
for y in range(x,n+2):
print(y,end='')
for z in range(0,x-2):
print(n+1,end='')
print()