PPT Slide
Let us look at the simplest possible Java Program which implements the making of change.
This program expresses the application directly in terms of integer division “/” and remainder or modulus “%” operators.
This is programming in Java.
public static void main(String[] args)
int amount, originalAmount, quarters, dimes, nickels, pennies;
System.out.println("Enter a whole number from 1 to 99.");
System.out.println("I will output a combination of coins");
System.out.println("that equals that amount of change.");
amount = SavitchIn.readLineInt();