Hi i have an assignment that i don't understand and need help in.
Write a program that reads in a command line integer N(number of pennies) and prints out the best way(fewest number of coins) to make change using US coins (quarters, dimes, nickels and pennies only). Your algorithm should dispense as many quarters as possible, then dimes, then nickels, and finally pennies.
Write a program that reads in a command line integer N(number of pennies) and prints out the best way(fewest number of coins) to make change using US coins (quarters, dimes, nickels and pennies only). Your algorithm should dispense as many quarters as possible, then dimes, then nickels, and finally pennies.
Comment