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 8fe9523 commit 21dff7fCopy full SHA for 21dff7f
Pyramid Patterns/pyramidpattern65.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("#",end=" ")
12
13
+ else:
14
+ print("*",end=" ")
15
16
+ print()
17
18
+# Sample Input :- 5
19
+# Output :-
20
+# # # # # #
21
+# * * * *
22
+# # # #
23
+# * *
24
+# #
25
0 commit comments