View Single Post
Old 12-18-2008, 07:15 PM   #5 (permalink)
kmote
 

Join Date: Jul 2005

Location: England

Posts: 2,183

kmote has a spectacular aura aboutkmote has a spectacular aura about

Default Re: Need Help with Program

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.
__________________
MSI P43 Neo|Enermax Pro82+ 425W|E5200|silent 8500GT|250GB Samsung spinpoint F1|Samsung SATA DVD RW|4GB Corsair|Antec SOLO|openSUSE11


There are in order of increasing severity: lies, darn lies, statistics, and computer benchmarks. - diskinfo man page
kmote is online now