Please note this is not the way I would do it, just an example
cents = getUserInput()
quarters = cents/25
theRest = cents%25
dimes = theRest/10
theRest = theRest%10
Also please excuse me if I'm being a fool and missing something obvious. I've not got nearly enough sleep as of late.