!((x < y) && (r >= s))
!(x < y) || !(r >= s)
x >= y || r < s
De Morgan’s Law results in the and (&&
) becoming or (||
) when the not (!
) is distributed over it.
The opposite of less tha (<
) is greater than or equal to (>=
). The opposite of >=
is <
.
A common mistake is assuming that the opposite of greater than (>
) is less than (<
).
Navigation
Exercise 2 solution
Exercise 4 solution
Exercises
All solutions