Skip to content

Commit 695079f

Browse files
Create StarDesignPrinter.py
1 parent c4e9e68 commit 695079f

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

StarDesignPrinter.py

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)