0xGamePlan/CoinCounter
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Repository files navigation
This is a basic coin counter using Java. It first divides the total amount of cents by the coin value to see how many there is and then uses modulo to keep the remainder. This logic is used inside a foreach loop until the total cents amount equals zero.