
/*
 *  This program reads one integer typed in by the user.
 *  It then displays that same integer.
 *
 *  Author:  David Eck, 7 September 2001
 */
 
public class Compute {

   public static void main(String[] args) {
   
      int N;  // A number typed in by the user.
   
      // Get the user's input.
   
      System.out.println();
      System.out.print("Enter an integer:  ");
      N = TextIO.getlnInt();
      
      // Display the number.
      
      System.out.println();
      System.out.println("The number you entered was " + N);
      System.out.println();
   
   } // end main()
   
} // end class Compute
