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

Ronda's car is valued at $24,000, and she owes $22,000 on it. What is her current equity? O A. $46,000 O B. $2000 O C. $4000 O D. $24,000
Type the correct answer in the box. Spell all words correctly. Which drawback of being an entrepreneur can disrupt your personal life? The that entrepreneurs su
Suppose that consumers' preferences are well behaved in that properties 4-1 to 4-4 are satisfied. Furthermore, assume goods X and Y are normal goods and the pri
what was one callenge workers faced while building the railroad?
Solve 0 = (x – 4)2 – 1 by graphing the related function. What are the solutions to the equation? 3 and 5 is the answer AND THAT'S JUST ON PERIOD POOH!
Pls help me ASAP!!!!!!!
2 When you brainstorm a list of words and concepts that are related to your personality traits, you are writing words that are related to an abstract mental con
Chet is a nontraditional student and commutes to school. He feels out of touch with the college he is attending because he feels he is too old to get involved w
How to get the answer for this?
When making decisions, you should not worry about how your decision will affect others. Please select the best answer from the choices provided. T F