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 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
def changea notes 2000500 200 100 note count 0 cou... View full answer
Get step-by-step solutions from verified subject matter experts
