//********************************************************************
// Demonstrates the use of a basic do(-while) loop
//********************************************************************

import cs1.Keyboard;

public class Do
{
   //-----------------------------------------------------------------
   //  Reads an even number from the user and prints comments accordingly.
   //-----------------------------------------------------------------
   public static void main (String[] args)
   {
      int tom;

      do {
            System.out.print ("enter an even integer: " );
	    tom = Keyboard.readInt();
      } while(tom % 2 == 1);

      System.out.println ("thanks---bye now");
   }
}
