Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main() {
- int x,a,b,c,d;
- cin >> x >> a >> b >> c >> d;
- if ( ( (x>=a) && (x<=b) ) || ( (x>=c) && (x<=d) ) ) {
- cout << "yes" << endl;
- }
- else {
- cout << "no" << endl;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment