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

viewed from earth, how does the moon's appearance the second week?
An equilateral triangular pyramid is spread to form the net shown here. What is the surface area of this triangular pyramid? A. 36.4 m2 B. 42.25 m2 C. 54.4 m
Which of the following has the greatest absolute value? Select one: A. -19 B. 0 C. 8 D. -11
Why were so few homesteaders successful?
Help with #7. Can someone show me step by step how to do please
Which option accurately describes the role of trade during the Age of Discovery? A) Explorers such as Christopher Columbus sought to trade for spices from India
How would you test for so4 2- in an aqueous solution?
According to the U.S. constitution, all powers not granted to the federal government are reserved for
I have a 88.1% plus 15 out of 15 and plus another 15 out of 15 what is my grade now
the wall measures 7 feet 8 inches across. How far from the edge of the wall do you need to place the nail for it to be centered on the wall