We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c4e9e68 commit 695079fCopy full SHA for 695079f
StarDesignPrinter.py
@@ -0,0 +1,25 @@
1
+print("Welcome to STAR PRINTING Program!\n")
2
+
3
+ptype = input("How you want to print?\n 1 for Low to High\n 2 for High to low\n")
4
5
+n = int(input("How many rows you want to Print?\n"))
6
7
+if ptype == "2":
8
9
+ a = n while a > 0:
10
11
+ print("*"*a)
12
13
+ a = a - 1
14
15
+if ptype == "1":
16
17
+ a = n
18
19
+ for j in range(a+1):
20
21
+ print("*"*j)
22
23
+ a = a +1
24
25
0 commit comments