Negation of <code>x > 0 && y < 10</code> is
- Acheck_circle
x <= 0 || y >= 10
- B
x <= 0 && y >= 10
- C
x > 0 || y < 10
- D
x < 0 || y > 10
Explanation
De Morgan: !(A && B) = !A || !B.
AP Computer Science A· difficulty 4/5
Negation of <code>x > 0 && y < 10</code> is
x <= 0 || y >= 10
x <= 0 && y >= 10
x > 0 || y < 10
x < 0 || y > 10
Explanation
De Morgan: !(A && B) = !A || !B.
Want 10 more like this — adaptive to your weak spots?