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

In the step by step simplification of expression below which property is not used? 3(1+x)3(x+1)3(x)+3(1)3x +3  A) associative B) commutative C) distributive D)
A laptop computer is priced at $650. If the sales tax is 5%, find the total cost of the computer, including sales tax.
A laptop computer is priced at $650. If the sales tax is 5%, find the total cost of the computer, including sales tax.
A laptop computer is priced at $650. If the sales tax is 5%, find the total cost of the computer, including sales tax.
Proof: Given: Isosceles trapezoid TRAP with TR=PA Prove: Angle RTA = angle APR
A laptop computer is priced at $650. If the sales tax is 5%, find the total cost of the computer, including sales tax.
A laptop computer is priced at $650. If the sales tax is 5%, find the total cost of the computer, including sales tax.
A laptop computer is priced at $650. If the sales tax is 5%, find the total cost of the computer, including sales tax.
Proof: Given: Isosceles trapezoid TRAP with TR=PA Prove: Angle RTA = angle APR
Proof: Given: Isosceles trapezoid TRAP with TR=PA Prove: Angle RTA = angle APR