We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c62e36 commit 8fe9523Copy full SHA for 8fe9523
Pyramid Patterns/pyramidpattern66.py
@@ -0,0 +1,25 @@
1
+height = int(input())
2
+
3
+for i in range(0,height+1):
4
5
+ for j in range(0,i):
6
+ print(end=" ")
7
8
+ for j in range(height,i,-1):
9
10
+ if(i%2 == 0):
11
+ print(height-i,end=" ")
12
13
+ else:
14
+ print("*",end=" ")
15
16
+ print()
17
18
+# Sample Input :- 5
19
+# Output :-
20
+# 5 5 5 5 5
21
+# * * * *
22
+# 3 3 3
23
+# * *
24
+# 1
25
0 commit comments