Guest User

Untitled

a guest
Jun 12th, 2022
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.19 KB | None | 0 0
  1. x = float(input("początkowa stawka: "))
  2. y = int(input("ilość dni: "))
  3.  
  4. p = int(input("procent wzrostu dziennie: "))
  5.  
  6. i = 0
  7. for i in range(y):
  8.     x += x * (p / 100)
  9.     i += 1
  10.  
  11. print(x)
  12.  
Advertisement
Add Comment
Please, Sign In to add comment