Computer Science, asked by smartboy4155, 6 months ago

Write a Python program to print the above pattern.​

Attachments:

Answers

Answered by riddhirajput8077
1

Answer:

CODE

1.n=int(input("Enter the number of rows: "))

2.m=(2*n)-2.

3.for i in range(0,n):

4.for j in range (0,m):

5.print(end=" ")

6.m=m-1 # decrementing m after each loop.

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

8.# printing full Triangle pyramid using stars.

HOPE ITS HELP YOU....

Answered by Anonymous
2

Answer:

Answer:

CODE

1.n=int(input("Enter the number of rows: "))

2.m=(2*n)-2.

3.for i in range(0,n):

4.for j in range (0,m):

5.print(end=" ")

6.m=m-1 # decrementing m after each loop.

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

8.# printing full Triangle pyramid using stars.

HOPE ITS HELP YOU....

Similar questions