THE ATM

Prize: Coding-Event Winner Role

Host: TheAltChemist

Begins: Aug. 8, 2019
Ends: Aug. 9, 2019

THE ATM

Other Event

Code that outputs the optimal amount of change

You're tasked with writing a piece of code, that outputs the optimal amount of change, given the amount of cents that the user want

So let's say a user wants: 123 cents

Then your function must give the output: 4 quarters, 2 dimes and 3 pennies

For the challenge we will use the American currency, only using their coins which has the values seen below:

Quarter: 25 cents Dime: 10 cents Nickels: 5 cents Pennies: 1 cent

You've got 24 hours, starting now. There's expected to be a lot of correct answers, but the winner will be the one that has the fastest runtime.

To submit the code DM @Tortoise the Tortoise BOT with t.submit and follow the instructions. You have one chance at this. So make sure you submit the correct code as it cannot be modified further after submission

Good luck!