Skip to main content
Logo image

Section 9.12 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.

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!