Now, the question states that at most 2 out of A, B, C are non-positive. So, it means that condition that includes the 3 numbers and returns true would be
1.
!(A =< 0 && B =< 0 && C <= 0)
Here, we know that either one of A, B or C is greater than 0. Hence, it will return true.
2.
A > 0 || B > 0 || C > 0
Here, the same reason would hold and at least one of them would return true.
1
solved Write logical expression which is true [closed]