C Program to find the number of denominations for a given amount

The following program asks the user to enter an amount and prints number of notes (of denominations 500, 100, 50, 20, 10, 1) to be distributed. For example, if the user enters $451, then 4 note of 100, 1 note of 50 and 1 note of 1 is required.

Expected Output:

1st run:

2nd run:


Recommended Programs

Leave a Comment

%d bloggers like this: