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

HELP! SUPER URGENT!A water sports store hires out wetsuits and diving equipment. The cost to hire a wetsuit is one-third of the cost to hire diving equipment.Da
What collateral secures a mortgage?O A.5% of the purchase price of the houseB.the house itselfC.10% of the purchase price of the houseD.none​
Can someone please help me with this question?
Because he was well aware of the effect his theory of evolution would have on the public and on the Church of England, Darwin delayed publishing his work for se
pls help Fill in the blank with the correct definite article. (You do not have to know the word, but look at the ending) ___ finesse. Le La
What is the value of x?
In which of the following cultures do women face particularly strong societal pressures to retain a youthful appearance during middle adulthood? a. Latino b. Ea
Read the sentence. He was waiting for the bus while he looked around for his newspaper. The bold word is an example of a possessive pronoun preceding a gerund.
whats the squareroot of 98
Anna is paid $14.75 per hour. She works a 12 hour shift, the last 4 hours being at a double time pay rate. What is Anna's wage before tax? HELP