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.

LANGUAGE: C++

CHALLENGE:

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.

Besides the number, nothing else should be written to standard output .

SOLUTION:


#include <iostream>
using namespace std;
int main(){
    int count;
    cin >> count;
    cout << (count * count);
}