To Print the Right angled Star Pyramid. - Learn Engineering

All the news and updates relevant to Engineering. You can also Write a post here

Breaking

Thursday, June 11, 2020

To Print the Right angled Star Pyramid.





Question

To Print the Right angled Star Pyramid.

Sample TestCase Expected Output

 3



Answer


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

Follow Us For More...


No comments:

Post a Comment