help somebody..

Input:

Weight: 202

Output:

100 lbs: 50lbs: 10lbs: 5lbs: 1lb:
202- 2 0 0 0 1

How to make this a program? Help.
A greedy approach will work in this case.
You should at least think of an algorithm, then only we will help you with the code..
Topic archived. No new replies allowed.