The assinment is i gotta prompt user to enter the number of five, ten twenty, fifty cent coins and one and two dollar coins they have then add em together.

The hard part is i need to store the number of cents as a integer and the number of dollars as an integer (not just one double)

So yeah

How can i seperate the number

123456 into the two numbers

1234 and 56

To display $1234.56

or any other way you could think of doing it

Thanks for any help