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

Student A B C D E F G H I J K L M N O Hours 6.5 1 2.5 2.5 4 1 0.5 4.5 5 1 1 2 1.5 1.5 2 Which histogram best represents the data?
I am the number that is 100 greater than 3,362. What number am I ?
4. Dayon and Naqueal go on a run everyday after school. For every 2 blocks Naquealruns, Dayon runs a block.A. Record the ratioB. Write an equivalent ratio if Da
rx+9/5 = h (solve for x) please show work and only put correct answers, thanks!
how did the season of winter halt German march through Russia leading the Russians to make a come back
Why does Romeo feel "reviv'd," or comforted? O because he is confident his family will accept Juliet because he knows he will be seeing Juliet soon because he i
Proprietary colleges often have issues with A. integration B. creditors c. immigration D. accreditation
Astrophysics is a cross sub-field of which two major sciences
Because the criminal justice system of the state of Cadmia has focused on the efficient arrest and conviction of criminal offenders, the crime rate in Cadmia ha
Use an array or an area model to illustrate how to solve this equation. Then, explain each part of theequation. 29×30​