import rebelsky.io.SimpleInput;
import rebelsky.io.SimpleOutput;

/**
 * A simple Java program that illustrates numeric input and output.
 *
 * @author Samuel A. Rebelsky
 * @version 1.0 of January 1998
 */
public class Square
{
  /**
   * Prompt for a number and print the square of the number.
   */
  public static void main(String[] args) 
  {
    // The object we're using to read input.
    SimpleInput in;
    // The object we're using to print output.
    SimpleOutput out;
    // The value entered.
    double val;
    // Set up input and output.
    in = new SimpleInput();
    out = new SimpleOutput();
    // Prompt for the value.
    out.print("Please enter a value and I will square it: ");
    // Get the name.
    val = in.readDouble();
    // Print a friendly message.
    out.println(val + " squared is " + val*val);
    // That's it
    System.exit(0);
  } // main
} // Square

