Untitled

mail@pastecode.io avatar
unknown
plain_text
a month ago
191 B
2
Indexable
Never
def rysuj_trapez(n, k):
    for i in range(n):
        print(" " * (n - i - 1) + "*" * k)
        k += 2

n = int(input("Podaj wysokość trapezu: "))
k = 1 + 2 * (n - 1)

rysuj_trapez(n, k)
Leave a Comment