Code View:
int main()
{
int age;
cout << "Enter a number: ";
cin >> age;
if (age > 18)
{
cout << "Can vote" << endl;
}
return 0;
}
Screen/Console view (what the user sees):
Explanation
Declare a variable called age. This reserves a space in memory to hold an integer.
WATCH
age : unknown