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

p varies directly as the cube root of Q. If P = 4 when Q = 8, find P when Q = 64​
What do you need to focus on during your second read? A. what the text says B. how the author conveys the text C. using context clues to make meaning D. identif
A maths textbook has mass 800g to the nearest 100g. What is the greatest possible mass of 10 books?
What is the basic unit for measuring time
Which of the following is a valid mole ratio from the balanced equation 2Fe2O3 + 3C → 4Fe + 3CO2? two moles of F e two O three over four moles of F e four moles
( Fulcrum ) Weight 1 = 150 lb. Weight 2= 450 lb. Distance 1 = 15 ft Distance 2 ? So I got an answer of 11 1/4 but I have no idea if im even right and I took an
What is a “quote bomb”?
How does dystopian fiction present the power of fear
Carolina and Tania, your classmates in Mexico to talk to these people what pronoun would you use
Describe the process of light-independent reactions.