Question: An ATM has the denomination of Rs.2000, Rs.500, Rs.200, Rs.100. Write a code to find minimum no. of notes can be disbursed by the

An ATM has the denomination of Rs.2000, Rs.500, Rs.200, Rs.100. Write a 

An ATM has the denomination of Rs.2000, Rs.500, Rs.200, Rs.100. Write a code to find minimum no. of notes can be disbursed by the machine for the requested amount assuming sufficient currency and all denominations are available. Input Format: A single integer represent the amount. Output Format: An integer represents the minimum number of notes can be disbursed. Example: Input: 9800 Output: Explanation: 4*2000+3*500+1*200+1*100 which gives 4+3+1+1 = 9

Step by Step Solution

3.42 Rating (152 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

def changea notes 2000500 200 100 note count 0 cou... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!