We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The condition below seems to be incorrect.
bool isOutsideRectangle = (x < -1 && x > 5 && y < 1 && y > 5) ? true : false;
how can x = -2 will x < -1 && x > 5 at the same time.
x = -2
x < -1 && x > 5
The correct condition is:
bool isOutsideRectangle = (x < -1 || x > 5) && (y < 1 || y > 5) ? true : false;
The text was updated successfully, but these errors were encountered:
Yes. You're condition is the correct one.
Sorry, something went wrong.
No branches or pull requests
The condition below seems to be incorrect.
how can
x = -2
willx < -1 && x > 5
at the same time.The correct condition is:
The text was updated successfully, but these errors were encountered: