/*
 * @topic T00020 Feb 14, 2013 -- C++ expressions
 * @brief logical AND <tt>||</tt> operator
*/

#include <iostream>

int main()
{
    int mon = 1;
    int tue = 2;
    int wed = 3;
    int thu = 4;
    int fri = 5;
    int day = thu;

    if ( ( day < fri ) && ( day > mon ) ) { // logical AND
        std::cout
            << "this is day "
            << day
            << " of the week\n"
            ;
    }
    std::cout << "\n";
    return 0;
}
/*Program Output:
this is day 4 of the week
*/