WAP to print star pattern #1

The output is like:

Star pattern


The code is:

star='* '

spc=' '

n=int(input("Enter lines="))

for i in range(1,n+1):

    print((spc*(n-i))+(star*i))

Comments

Popular posts from this blog

Cbse result by raxit