x=input('jumlah bintang yg akan ditampilkan=')
y=0
while x>y:
y=y+1
a=0
while y>a:
print "*",
a=a+1
print ""
while y>0:
y=y-1
a=0
while y>a:
print "*",
a=a+1
print ""
y=0
while x>y:
y=y+1
a=0
while y>a:
print "*",
a=a+1
print ""
while y>0:
y=y-1
a=0
while y>a:
print "*",
a=a+1
print ""
0 komentar:
Posting Komentar