Computer Science, asked by bandalex51, 4 months ago

. Write an algorithm to count the number of bills (1000, 500, 100, 10, 1) in a number.

Answers

Answered by strawberry6023
0

Answer:

Write a C program to input amount from user and print minimum number of notes (Rs. 500, 100, 50, 20, 10, 5, 2, 1) required for the amount. How to the minimum number of notes required for the given amount in C programming. Program to find minimum number of notes required for the given denomination. Logic to find minimum number of denomination for a given amount in C program.

Example

Input

Input amount: 575

Output

Total number of notes:

500: 1

100: 0

50: 1

20: 1

10: 0

5: 1

2: 0

1: 0

Hope it works out for you

thanks

Similar questions