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

What happens to the particles of a substance when thermal energy is added to the substance?
why does dr.king compare his letter to a book?
How many times does 5.50 go into 60.50?
What does Guenevere suggest Mary do about her predicament in King Arthur's Socks: A Comedy in One Act? a. Guenevere urges her to declare her love to Lancelot.
What is the number of coefficients in 6a-3, 0.2-y+8z, and 1/2 n? Someone please help
How old can a dog be until it die's?
Write the fraction as a decimal. 28/15
Within a group, which period, top or bottom is likely to contain atoms with the larger radius?
trevor earned $826 on an account bearing 2.6 percent interest for 7 years How much money did he invest? (p)
PLEASE HELP ME. Solve using the quadratic formula. 5x2+x+3=0