public class PrintSquare {

     public static void main(String[] args) {

        // a program that computes and prints the square
        // of a number input by the user.

        int userInput;  // the number input by the user
        int square;     // the userInput, multiplied by itself
        
        TextIO.put("Please type a number: ");
        userInput = TextIO.getInt();
        square = userInput * userInput;
        TextIO.put("The square of that number is ");
        TextIO.putln(square);
        
     } // end of main()
     
} //end of class PrintSquare
