Computer Science, asked by udaychanpa635, 7 months ago

1
2 3
4 5 6
7 8 9 10

write a program using while loop to display above output​

Answers

Answered by Aaditya12Vyas
0

Answer:

a = 1

for i in range(1,5):

   for j in range(i):

       print(a, end=" ")

       a += 1

   print()

Explanation:

Similar questions