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

What is the tone of the following quote? “Mother pulls me close and pats my head. Father watches over us even if he’s not here.
Mr. Lama teaches well. (into yes/no question)
How can we reimagine public transportation to suit young people’s mobility needs? . Mobility services: What additional mobility options could be added to the cu
velocity time graph Pls how do i solve , it seems hard.​
No links Pls Aproximating Irrational Numbers Which of the following numbers are closest to 7? A. √50 B. √47 C. √51 D. √46
easy music question.................
What percentage of people spend between 41 and 56 minutes watching TV shows on this streaming service? A 13.5% B 34% C 47.5% D 95%
Suppose you are an English colonist in the early 1700s. Send a postcard to a friend in Europe encouraging him or her to settle in your colony. Your postcard mus
What is the relationship between the circulatory and respiratory system
Choose the correct placement for commas in this sentence. Basically my work here is done. Choose 1 answer: Choose 1 answer: (Choice A) A Basically\redD{,},start