/* * @topic T00022 Feb 14, 2013 -- C++ expressions * @brief logical OR <tt>||</tt> operator */ #include <iostream> int main() { int mon = 1; int tue = 2; int wed = 3; int thu = 4; int fri = 5; int day = mon; if ( ( day < tue ) || ( day > thu ) ) { // logical OR std::cout << "this is day " << day << " of the week\n" ; } std::cout << "\n"; return 0; } /*Program Output: this is day 1 of the week */