python-radionica/Cas3/pravougaoni_trougao.py

24 lines
382 B
Python
Raw Normal View History

# 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()