# File: make_change.py # # Input: the sum you want to convert to quarters, dimes, nickels, pennies # Output: print input number, conversion to coins # # Matt Bishop, MHI 289I, Fall 2023 # # 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 # and now print the result print(A, "cents is", NQ, "quarters,", ND, "dimes,", NN, "nickels, and", end=' ') print(IA, "pennies")