#1011 make new file called pyramid in day 1 - 15

pull/1013/head
Darkness1805 2024-02-23 20:59:59 +05:30
parent 28bfaa3d03
commit 31e8ae414d
1 changed files with 10 additions and 0 deletions

View File

@ -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")