Write a complete program that declares an integer variable, reads a value from the keyboard into that variable, and writes to standard output  the square of the variable ‘s value.

Write a complete program that declares an integer variable, reads a value from the keyboard into that variable, and writes to standard output  the square of the variable ‘s value.

LANGUAGE: C++

CHALLENGE:

Write a complete program that
~declares  an integer  variable ,
~reads a value  from the keyboard into that variable, and
~writes to standard output  the square of the variable ‘s value.

Besides the number, nothing else should be written to standard output .

This content requires that you purchase additional access. The price is $2.99 or free for our Make Life Easier and 30 Days – Not Recurring members.

Purchase this Content ($2.99) Choose a Membership Level