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

answer these questions:
Buying a new car can create a financial challenge because... A) car insurance rates will decrease over time. B) car payments must become part of the budget. C
A number from 22 to 29 is drawn at random. What is the probability that the number is not a 28?
What is home quality
which statement is true of covalent bonds? they form when atoms lose electrons. they form when atoms gain electrons. the form when electrons are shared. they fo
The area of a square can be found using the equation A= s2, where A is the area and S is the measure of one side of the square. Match the equation for how to sl
What is the difference between a complementary good and a substitute good? Give an example of each kind of good for each of these products: ice cream, baseball
Maria wants to create a simple logo for her new flower shop. She would like to use the computer to create this logo. Maria should use ____
why is the event described in the article taught in schools today​
find the area of a triangle with side lengths of 4 inches, 7 inches, and 10 inches