Nested If statements
int x = 3, y = 5;
if ( x < y)
{
cout << x is smaller than y;
if ((x % 2) == 0)
{
cout << and even;
}
}
cout << , done << endl;
x is smaller than y, done
Fixed a typo originally I had (y % 2) == 0 instead of (x % 2) == 0