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

are the planets gaseous or solid and state the reason for your answer​
Do you like math? If you do solve this simple equations [tex]2 + 2 + 4 + 4 + 8 + 8 + 16 + 16[/tex]​
what's 2/5 - 9/10 as a fraction?
Can someone solve this ASAP.
You discover a technical ‘anomaly’ in the US stock market. You find that stocks that go up X% or more 2 days in a row have an expected alpha of X/100% the follo
Florida panthers can have straight tails (S) or curly tails (s). What is the probability that two heterozygous panthers will have offspring with curly tails? Gr
¿Qué fue la Guerra Fría?
can someone help me asap​
Solve for x[tex]2x + 5 = 15[/tex]​
Write the complete subject in each sentence. 1.Each of the students wrote the answer on his paper. 2.All of my friends like music. 3.Two of the students had a f