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 cefc765 commit 6b865f7Copy full SHA for 6b865f7
Pyramid Patterns/pyramidpattern55.py
@@ -0,0 +1,31 @@
1
+height = int(input())
2
+
3
+for i in range(1,height):
4
5
+ for j in range(height-i,1,-1):
6
+ print(end=" ")
7
8
+ for j in range(height-i-1,height-1):
9
+ print(j,end=" ")
10
11
+ print()
12
13
14
15
+ for j in range(1,i+1):
16
17
18
19
+ print(height-j,end=" ")
20
21
22
23
+# Sample Input :- 5
24
+# Output :-
25
+# 3
26
+# 2 3
27
+# 1 2 3
28
+# 0 1 2 3
29
30
31
0 commit comments