Python Program to Print Half Pyramid
In this program we will print half pyramid using *
- #print half pyramid
-
- n=int(input("Enter number of rows: "))
-
- for i in range(0, n):
- for j in range(0, i+1):
- print("* ",end="")
- print("\r")
Output

Solution not working or have any suggestions? Please send an email to [email protected]
Download Android App