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

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

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 variable’s value, twice the value, and the square of the value, separated by spaces.

Besides the numbers, nothing else should be written to standard output  except for spaces separating the values .

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