#1011 make new file called pyramid in day 1 - 15
parent
28bfaa3d03
commit
31e8ae414d
|
@ -0,0 +1,10 @@
|
|||
#lets start with simple right angle triangle
|
||||
n = int(input("enter number of rows: "))
|
||||
# n is a veriable for taking number of rows
|
||||
for x in range (0,n):
|
||||
|
||||
for y in range (0,x+1):
|
||||
|
||||
print("* ",end = "")
|
||||
|
||||
print("\r")
|
Loading…
Reference in New Issue