Notes from 9/19

nested.cpp

#include <iostream>
using namespace std;
int main()
{
    int x = 6, y = 8, z = 5;
    if( x % 2 == 0 )
    {
        cout << "A";
        if( y > z )
        {
            cout << "B";
        }
        else
        {
            cout << "C";
        }
        cout << "D";
    }
    else
    {
        cout << "E";
        if(z > x)
        {
            cout << "F";
        }
        if( y > z)
        {   
            cout << "G";
        }
        cout << "H";
    }

    return 0;
}