QUOTE (rc69 @ Jan 13 2008, 02:13 PM)

We are not here to do your homework. If your teacher won't help, then that should leave whatever book you're using in class.

Same as a "roman numeral" formatter thingy (dunno what to properly call it).
Run a loop, possibly a while loop. And subtract off the highest possible number each time till you get to 0 (more work is needed of course, conditionals, etc... but that is what you basically have to do).