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 what ways did the Federal government finally try to help stem the tide of the Great Depression?
In which substance does chlorine have an oxidation number of +1? (1) Cl2 (3) HClO(2) HCl (4) HClO2
A is a constant. Find A such that the equation 2x + 1 = 2A + 3(x + A) has a solution at x = 2.
chemistry is best defined as the study of what
is 10 gallons greater or less than 60 quarts?
where is the hottest place on earth
A student measures the mass and volume of a piece of aluminum. The measurements are 25.6 grams and 9.1 cubic centimeters. The student calculates the density of
PLEASE HELP Solve. 5x+2/2 = 2x - 1 X = ________ ?
A cellphone company offers four choices for purchasing talk time. Which of the following has the lowest cost per minute? F 200 minutes for $24.50 G 550 minute
Sunflowers belong to which of the following kingdoms? A. Animalia B. Fungi C. Plantae D. Protista