Computer Science, asked by deepika55542, 10 months ago

write a program to print this pattern.

Attachments:

Answers

Answered by jennifer639
3

plz mark it brainliest and

follow me

Attachments:
Answered by AbhijithPrakash
4

k=0 # k is a variable that is going to help in making the pattern.

for i in range(1,6): # Outer loop to handle number of rows.  

   for j in range(0,i): # Inner loop to handle number of columns

       k+=1 # This will change the value of k so that it'll print the number from 1 to 15.

       print(k, end=" ") # This will print the value of k

   print()  

Attachments:
Similar questions