Your Arch Enemy’s Credit
Credit Interest Fun 💸
Your arch-nemesis just took a loan — 20,000 UAH.
Every month, interest sneaks up at 2.5% of the remaining amount.
20,000 UAH, 2.5% interest
But don’t worry — your nemesis is slowly paying it down. Still, the interest keeps growing every month (turns out, the bank that gave the loan is extra mean 😈):
18,000 UAH, 2.5% - Month 1
16,000 UAH, 2.8% - Month 2
14,000 UAH, 3.1% - Month 3
12,000 UAH, 3.4% - Month 4
Your mission: calculate the total amount and interest paid by your nemesis.
Loan amount: XXX UAH
Total interest paid: X UAH
Grand total (loan + interest): XXX + X UAH
Hint: use functions with parameters in your code — make it fun, reusable, and clever! 🛠️