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

Ted is not particularly creative. he uses the pickup line​ "if i could rearrange the​ alphabet, i'd put u and i​ together." the random variable x is the number
Help 10 points! Digesting a banana before running a race is an example of converting nuclear energy into mechanical energy. nuclear energy into mechanical ener
How do you find the length of a circle
I was supposed to determine the length of the winding path through the circle.my answer is [tex]12.56 \: in {}^{2} [/tex]Is this correct?​
What is the answer to number 18?
a mailing container for posters is made from 87.4 square inches of cardboard the container is in the shape of a triangular prism the base of the prism is an equ
HURRY PLEASE Which expression is equivalent to 2w? A)w+w B)2w+w C)2w-w D) w+2
Melissa wants to sauté some peas, but wants to ensure that they do not loose their bright green color. How should Melissa cook the peas? A. boil the peas first
Which statement is true about trends in metallic character?a) Metallic character increases as you go to the right across a row in the periodic table and as you
How do the various economic systems of capitalism, socialism, and communism create economic imbalances between nations?