C++ Programming Code Examples C++ > If Else and Switch Case Code Examples If Statement - display even numbers If Statement - display even numbers cout << "Even numbers" << endl; for(int x = 0; x <= 100; ++x) { if (x % 2 == 0) cout << x << endl; cout << "Happy Codings - C++ Programming Language Code Examples"; }