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

An object of mass 2 kg has a linear momentum of magnitude 6 kg • m/s. What is this object’s kinetic energy?
How many prime numbers are there between 56 and 100?
Estimate the angle of elevation from the trailhead to the summit.
how do you figure out what is 1/4 of 10.
Which technological development enabled European navigators to determine their location during the Age of Exploration? (1) lateen sail (2) astrolabe (3) cross
Which of the following are examples of trisomy? Turner Syndrome, Down's syndrome, or Klinefelter's Syndrome
given: quadrilateral ABCD with ∠A= ∠C and BD the bisector ∠ABC prove: DB bisects ∠ADC
Meg pounded a stake into the ground. When she attached a leash to both the stake and her dog’s collar, the dog could reach 9 feet from the stake in any directio
What is the average of 30, 40, and 80?
A biome that contains a layer of permanently frozen soil, called permafrost, would be classified as A. taiga B. desert C. tundra D. savannah E. temperate decidu