HW11
COP-3223H
Using only C comparison and Boolean operators, write a C Boolean condition in C that computes the truth value of the following logic problem. If you like, you may also assign and use variables to hold intermediate values.
The Boolean condition should be true when (1) x is either between x1 and x2, where x1 is less than x2 or (2) y is between y1 and y2, where y1 is less than y2, but not both
Create the complete truth table for the following conditional expression. What can we say about this expression?
b && (a || !b) && !a
a b !b a || !b !a b && (a || !b) b && (a || !b) && !a 1 1 1 0 0 1 0 0