This cpp code gives you the minimum number of notes for the entered amount
Read this post on programminginfinitum.blogspot.com