CSC111 ATM.py program
--D. Thiebaut (talk) 09:11, 10 February 2014 (EST)
# atm.py
# Dominique Thiebaut
# a program that takes some amount of $
# and breaks it down into some number of
# bills.
amount = 139
bills = amount // 20
amount = amount % 20
print( bills, "$%d bill(s)" % 20 )
bills = amount // 10
amount = amount % 10
print( bills, "$%d bill(s)" % 10 )
bills = amount // 5
amount = amount % 5
print( bills, "$%d bill(s)" % 5 )
print( amount, "$%d bill(s)" % 1 )