// Example 2.20. Program to input an integer and print its square #include <iostream.h> int main(void) { int num, // input square; // square of num cout << "Please type in an integer: "; cin >> num; square = num * num; cout << "The square of " << num << " is " << square << ".\n"; return 0; }