Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- P = int(input())
- X = int(input())
- Y = int(input())
- K = int(input())
- S = 1
- SumBef = 100 * X + Y
- SumAf = int(SumBef * (100 + P) / 100)
- while S != K:
- SumAf = int(SumAf * (100 + P) / 100)
- S = S + 1
- print(SumAf // 100, SumAf % 100)
Add Comment
Please, Sign In to add comment