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):
Enter a number:
Explanation
Display text to the user “Enter a number: “
WATCH
age : unknown