Computer Science, asked by Muaaz1802, 1 month ago

Write a python program: ask the user for the number of rows and print star pattern

Answers

Answered by Sampurnakarpha
1

Answer:

# Program to print full pyramid

num_rows = int(input("Enter the number of rows"));

for i in range(0, num_rows):

for j in range(0, num_rows-i-1):

print(end=" ")

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

print("*", end=" ")

print()

Explanation:

Similar questions