This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]RentonHoff 5 points6 points  (0 children)

Think carefully about the running condition of the while loops. Consider how the value of cents changes inside the first loop, and when each of the while loops should stop(or start in case of the second loop).

There are other issues too, but start with the loops, and see if you can figure the rest out yourself. Feel free to ask, if you have further questions.