for example sample input= 4 , print right angle trangle in numbers like ,reverse order
1
121
12321
1234321
like this can solve this for mee ?
input1 = int(input(''))
k = 0
for i in range(1,input1+1):
for j in range(1,i+k):
print(j, end=' ')
k = k + 2
print()
Comments
Leave a comment