Advertisement
michal5550

Untitled

Jul 10th, 2020
19
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. n = int(input('Podaj wysokość choinki : '))
  2. spacje = n - 1
  3. gwiazdki = 1
  4. for i in range(n):
  5. print(' ' * spacje + '*' * gwiazdki)
  6. spacje = spacje - 1
  7. gwiazdki = gwiazdki + 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement