This C++ program is used to print given integer input by the
user on the screen.
cin is used to obtain input and
cout is used to print the number on the
screen.
Example:
#include <iostream>
using namespace std;
int main()
{
int number;
cout << "Please enter an integer: ";
cin >> number;
cout << "You enter the integer " << number;
return 0;
}
Program Output:
Please enter an integer: 12 You enter the integer 12