# read in the amount of change and make it a number A = input("Amount of change: ") IA = int(A) # how many quarters NQ = IA // 25 # how many dimes in what's left over IA = IA % 25 ND = IA // 10 # how many nickels in what's left over IA = IA % 10 NN = IA // 5 # how many pennies in what's left over IA = IA % 5 print(A, "cents is", NQ, "quarters,", ND, "dimes,", NN, "nickels, and", end=' ') print(IA, "pennies")