# include # include using namespace std; int main ( ) { float a, b, x; a = 3.0; b = 17.0; cout << "Our interval is [" << a << ", " << b << " ].\n"; cout << "Enter a value of X and we will see if it is in the interval.\n"; cin >> x; if ( x < a ) { cout << x << " is to the left of " << a << ".\n"; } else if ( x <= b ) { cout << x << " is in the interval [" << a << ", " << b << " ].\n"; } else { cout << x << " is to the right of " << b << ".\n"; } return 0; }