24 lines
382 B
Python
Executable File
24 lines
382 B
Python
Executable File
# pravougaoni trougao
|
|
|
|
# while petlja
|
|
|
|
duzina_katete = int(input("Unesite duzinu kateta pravougaonog trougla: "))
|
|
|
|
brojac = 1
|
|
|
|
while brojac <= duzina_katete:
|
|
print("A" * (brojac))
|
|
brojac += 1
|
|
|
|
input()
|
|
|
|
# for petlja
|
|
|
|
kateta = int(input("Unesite duzinu katete drugog pravougaonog trougla: "))
|
|
|
|
for i in range(kateta):
|
|
print("#" * (i + 1))
|
|
|
|
input()
|
|
|