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

Identifying the true consequences or outcomes based on the evidence, is adopting a ___________ perspective.
Find the circumference. Use 3.14 for n. r = 3 C = [?] ft = C=Td
(100 points) Graph the function f(x) = 21(0.5)x. an exponential graph decreasing from the left and crossing the y axis at 0 comma 5 an exponential graph decreas
What was president Lincoln's Pan for reconstruction?
Give the English meaning for each verb and fill in the blank with the correct form
14 water in a lake freezing us an example of a chemical change is my answer correct?
What is the answer for number 1?
Write -12 3/4 as a decimal number
Eight out of ten dogs weigh less than 20 pounds. What is the decimal equivalent for the number of dogs weighing less than 20 pounds?
how many dna molecules would there be after four rounds of pcr if the initial reaction mixture contained two molecules?