praveen2582 praveen2582
  • 04-03-2020
  • Computers and Technology
contestada

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.

Respuesta :

kendrich
kendrich kendrich
  • 09-03-2020

Answer:

#include <iostream>

using namespace std;

int main ()

{

int num;

cin>>num;

cout << num<< " " << 2 num << " " << numnum;

return 0;

}

Explanation:

See answer

Answer Link

Otras preguntas

Which belief was generally held by the Founding Fathers at the Constitutional Convention in 1787? Slavery should be abolished. Presidents should be powerless. A
What is the most appropriate transition to replace the word consequently in the beginning of second sentence? James steered his ship through high winds for thre
A keg cost $65 plus a $15 refundable deposit. You deliver two ( 2 ) kegs and pick up three ( 3 ) empty kegs, what would the total cost be?
the house of representative has special power
Which of the following expressions could you use to estimate 47% of 89? 1/2 x 90 0.5 x 90 0.47 x 89 90/2
which is greater? 44.65 or 44.650
8+|1+(-15)| how do u solve this ?
Any condition in an experiment that can be changed?
bags of 10 sold 2430 apples one day
Dylan sent junk email multiple times to his friend, wasting his friend's time. What did Dylan do wrong?