Program to get the count of notes and shows the denomination
# values of notes
notes = (50, 20, 10, 5, 1)
amount = int(input('amount: '))
for note in notes:
if amount >= note:
print(f'{note} : {amount//note}')
amount %= note
else:
print(f'{note} : 0')
Comments
Leave a comment