0
Please check my coding for executing pattern programming and tell me my mistake and explain it:
4321 432 43 4 row = 4 while (row>=1): col=4 while (col>= 1): print (col, end=" ") col = col-1 row=row-1 print ()
3 odpowiedzi
0
num = 4
while num >= 0:
for i in range(num,0,-1):
print(i,end='')
print()
num = num - 1
0
https://code.sololearn.com/c65V6H9weliQ/?ref=app
Check this
Some corrections in Your logic
row = 1
while (row<=4):
col=4
while (col>= row):
print (col, end=" ")
col = col-1
row=row+1
print ()