Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- money=input('Enter the Amount: ')
- note=[2000,500,200,100,50,20,10,5,2,1];i=0
- if(money.isdigit()):
- money=int(money)
- while money>0:
- ans=money//note[i]
- if (ans>0 ):print('{} X {} = {}'.format(note[i],ans,note[i]*ans));money=money%note[i]
- i+=1
- else:
- print('Give reply in positive number')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement