//Find how many dozen and how many left over for a quantity package dozens; import java.util.*; public class Dozen { public static void main(String[] args) { Scanner keyboard=new Scanner(System.in); //do just once int quantity,dozen; System.out.print("How many do you have:"); int quantity=keyboard.nextInt(); int dozen=quantity/12; System.out.println("You will have "+dozen+" dozen."); System.out.println("You will have "+quantity%12+" left over."); }//main }//package