// Ex340.cc // Sec 3.4 of lecture // Logical operations. Check weather a number is in an intervall. #include main() { const int Ne = 5; // one limit int i; cout << " i = " ; cin >> i; // Input i if ( i <= Ne && i >= 0 ) // other limit is 0 { cout << "i between 0 and 5" << endl; } }