Share your repls and programming experiences

← Back to all posts
Converter
mruijied (0)

This small piece of code and convert cents into quarters dimes nickels and pennies.

Comments
hotnewtop
LukeWright (114)

das kool how you do it

mruijied (0)

@LukeWright So, the value/ the number of cents is divided first by quarters/25 cents until the new value is under 25, then it moves on to dimes/10 cents all the way down to pennies.

LukeWright (114)

you used %?
I never thought about doing it that way
@mruijied