Computer Science, asked by rekharr1424, 11 months ago

Make a program in python to display
1
2 3
4 5 6
7 8 9 10

Answers

Answered by pkarmakar0094
2

Answer:

n=4

c=1

for i in range(0,n):

for j in range(0,i+1):

 print(c,end=" ")

 c=c+1

print()

Explanation:

Similar questions