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

Nicole invests $2000 in an account. The account pays compound interest at a rate of K% per year. At the end of the first year, the money in the account is $2036
Chrissy is writing a paragraph comparing and contrasting the Maori and Haida views about nature. Which is the best topic sentence? A. The Maori and Haida had di
the value of ¾ of 12 isa) 16. b) 1. c) 9. d) 1/16with step by step explanation ​because I am getting two answers 16 and 9
NO LINKS!! URGENT HELP PLEASE!!! Problem 1 Picture #1 (left): Arc CDE = < CAB = Problem 2 Picture #2(right): Arc DCB= Arc EBC=
1. Find the possible values of r in the inequality 5 > r - 3. OA.r = 8. OB. r<2 OC.r=2 D. r<8
Grinning grass can also be a...
During a clearance sale at a department store, all items were sold at 70% off the regular price. Michelle had a discount coupon that would get her an additional
1. Find the possible values of r in the inequality 5 > r - 3. OA.r = 8. OB. r<2 OC.r=2 D. r<8
A circuit is made up of a resistor, inductor, and capacitor (and nothing else) connected by wires. The capacitor has a capacitance of 1.2 μ F, the inductor has
Grinning grass can also be a...