In C++: What is the opposite of ( x < 20 && x > 12)? please respond quickly and clearly, thank you!
Here x<20 && x>12 refers to numbers less than 20 and numbers greater than 12.
so the numbers satisfying this condition is 13,14...19. here first less than and greater than conditions are checked seperately, && means both conditions should be satisfied.
so the opposite of this condition is
x>=20 ll x<=12.
This includes the numbers which is either greater than or equal to 20 or the numbers which are less than or equal to 12.
ll is the or operator.
Get Answers For Free
Most questions answered within 1 hours.