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-11 10:30

Where are all the good languages?  I expected to see some interesting Perl at the least.  Instead two of the languages /prog/ deems as jokes have posted solutions.

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