ashvish183 / Hactoberfest2023

Add any code of DSA
13 stars 233 forks source link

Create notes_required_calculater.cpp #27

Closed utkarsh1042005 closed 1 year ago

utkarsh1042005 commented 1 year ago

This is a c++ program which will help you to calculate how many different notes will be required to pay a certain amount This can be used by ATM to give money in different types of notes available inside it to give to the customer. For Example: To pay Rs.752 please use following notes: Number of 500 notes required is : 1 (500 X 1) Number of 200 notes required is : 1 (200 X 1) Number of 50 notes required is : 1 (50 X 1) Number of 1 notes required is : 2 (1 X 2)