Pyramid pattern

Pyramid pattern using for number

n=int(input("enter n")
for i in range(0,n):
    for j in range(0,n-i-1):
       print(end=" ")
    for j in range(0,i+1):
        print("*",end=" ")
print()

Comments

Popular posts from this blog

Software Freedom Day 2020

Python

Factorial