Program Segitiga Sama Kaki Bintang Python
Listing
n=int(input("Masukkan Tinggi Segitiga = "))
for i in range(n):
for j in range(n-i):
print " ",
for k in range(2*i+1):
print "*",
print
n=int(input("Masukkan Tinggi Segitiga = "))
for i in range(n):
for j in range(n-i):
print " ",
for k in range(2*i+1):
print "*",
Output
Komentar
Posting Komentar