Simple Functions: squaring, and isNaN checking



Description

This program squares the value of a number typed at the keyboard. It is trivial in terms of the computation, but is designed to illustrate these new concepts:

 1.  function definition
 2.  function calling with parameters being passed
 3.  returning a value from a called function
 4.  using isNaN to check user input

Input

User types a value to square.

Output

The user input value squared is printed.

Termination

Self-terminating