You're about to challenge the arena, but first you need to make sure you're well prepared with enough potions!
For security reason, the arena ask you to have at least 3 potions to enter safely. Each potion costs 200 coins.
Check if you have enough potions (>= 3)
- If yes:
"You're ready!"
- If no: Check if you have enough money to buy more
- Calculate how many potions you need and total cost
- If you can afford them, increment your potions count, decrement your money, and display:
"Buying X potions for Y coins"
- If you can't afford them, display:
"Not enough money! You need X more coins"
Print your money and number of potions at the end