File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
rows = input()
2+
rows = int (rows)
3+
4+
for i in range (rows,0,-1):
5+
for j in range(1, i + 1):
6+
print(j, end=' ')
7+
n_of_stars = 2* ( rows-i) - 1
8+
for j in range(1,n_of_stars+1):
9+
print("*",end = ' ')
10+
print()

0 commit comments

Comments
 (0)