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

sentence using the words reasoning and advance
When is it helpful to round the quotient to the nearest hundredth
Which sentence in this passage correctly uses the semicolon? A.Jane was tired of living an unassuming life; in the suburbs. B. She was also very curious to lea
Why does your heart never tire of constantly beating to pump blood throughout your body?
sally buys a handbag. there was a discount of 30%. if sally paid, $20, what was the original price?
The most accepted theory regarding the make-up of living things is the _____. organismal theory cell theory chromosomal theory
what is a solid figure that has three pairs of parallel faces and all faces are congruent
How were the Revolutionary efforts of George Mason and Thomas Jefferson most alike? A: Both worked together to write the Declaration of Independence. B: Both in
Read the sentence. Web sites can give you information about your family’s important legal records. Which is the indirect object of the sentence? Web sites info
Hershey and Chase used _______ to prove DNA was the carrier of inherited material. a. radioactive isotopes b. enzymes c. nucleic acids d. none of the above