#include using namespace std; // illustrates scope int first = 4; int main() { int first = 4; int second = 0; while (first < 10) { int second = first * 2; // shadows main's second cout << "\tsecond = " << second << endl; first *= 2; if (first > 10) { int first = second; // shadows main's first first = first/10; cout << "\tfirst = " << first << endl; } cout << "first = " << first << endl; } cout << "second = " << second << endl; return 0; }