Now how would you do it if the available coin values were: 40,30,10,4,3,1 That's a more interesting problem, but probably a less interesting coding test, because I think it would involve a more brute force approach, less elegance. -- Ciao, Paul D. DeRocco Paul mailto:pderocco at ix.netcom.com