ArifJan

Уёбищные проценты

Oct 18th, 2020
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. P = int(input())
  2. X = int(input())
  3. Y = int(input())
  4. K = int(input())
  5. S = 1
  6. SumBef = 100 * X + Y
  7. SumAf = int(SumBef * (100 + P) / 100)
  8. while S != K:
  9. SumAf = int(SumAf * (100 + P) / 100)
  10. S = S + 1
  11. print(SumAf // 100, SumAf % 100)
Add Comment
Please, Sign In to add comment