Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

2010 Homework #02 - Coins

Name: Anonymous 2010-01-10 4:35

How many ways can one make a single US dollar from exactly 10 coins? Write a program that calculates the answer to this. For bonus points, write one that can calculate the answer for any amount of money and any amount of coins.

50 cent pieces, quarters, dimes, nickels, and pennies are allowed.

The answer to the problem is 6. ENTERPRISE C SOLUTION in the next post.

Name: Anonymous 2010-01-10 14:55

Interesting.  After some examination, you can break a half dollar into two variations of five coins: quarter dime dime nickel nickel nickel, and dime dime dime dime dime.
Never noticed that before.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List