Skip to main content

Section 9.13 Negating Logical Expressions

Sometimes you might want to check whether a certain logical expression is NOT true, rather than finding out whether it is true. There are several ways to do so.

Aside: Video Description.

Check Your Understanding Check Your Understanding

1.

Which of the following is equivalent to !(A<0 || B<0)?
  • A>=0 && B>=0
  • Correct
  • A>=0 || B>=0
  • Not quite. Try again!
  • !A<0 || !B<0
  • Not quite. Try again!
  • !A<0 && !B<0
  • Not quite. Try again!