# File: change-write.py # # Input: integer representing number of cents # Output: corresponding change in quarters, dimes, nickels, pennies # # Matt Bishop, MHI 289I, Fall 2020 # # notes: # * used to show how to write a program # #### below is from the handout # read in the amount of change and make it a number IA = int(input("Amount of change: ")) origIA = IA # 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(origIA, "cents is", NQ, "quarters,", ND, "dimes,", NN, "nickels, and", IA, "pennies")