0
Print This pattern using python only
This pattern 1 321 54321 7654321 987654321
6 ответов
+ 1
n=int(input("enter no of rows "))
for i in range(n): # for no of rows
print(" "*(n-i-1),end="")
for j in range(2*i+1): #for no of elements in a column
print(str(j-(2*i+1)),end="")
print()
0
Actually i had attempted on my pc
0
So if u run the code...
It is almost done.
Simply the numbers are negative.
This little step u can do too.
0
Yes the numbers comes negative...
i wanna correct this please help me