Write a Python program to print the above pattern.
Attachments:
Answers
Answered by
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
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
Physics,
3 months ago
English,
3 months ago
English,
3 months ago
Math,
6 months ago
Social Sciences,
6 months ago
Environmental Sciences,
11 months ago
Math,
11 months ago
Math,
11 months ago