Hello

How can I get minimum number of coins for a given amount.

I have fixed denominations of cents - 25, 10, 5 and 1

If I have 0.67 then what will be the minimum numbers coins I need

Thank you all in advance for valueable advices and suggestions

vishalonne
12
Junior Poster in Training

Hello

How can I get minimum number of coins for a given amount.

I have fixed denominations of cents - 25, 10, 5 and 1

If I have 0.67 then what will be the minimum numbers coins I need

Thank you all in advance for valueable advices and suggestions

Jump to PostClass assignment? Sorry, but the terms of service here do not allow us to do your homework for you. Make a good attempt to solve the problem, and if you have errors, post the code here, which we can then critique and help you with (to a point).

rubberman
1,355
Nearly a Posting Virtuoso
Featured Poster

Gonbe
32
Newbie Poster

cayman

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.