29.4k views
0 votes
Find the true Value if: int x = 15; int y = 100;

(x >y);
! (x< 15)
(x<= 15)
(x == y);
(x != 5);
(x*-y>0)

1 Answer

7 votes

Answer:

! (x< 15)

(x<= 15)

(x != 5);

Step-by-step explanation:

Here, x is not less than 15 and hence !(x<15) is true. Also x = 15 and hence x is !=5, and hence x<=15 amd x!= 15 is true. However, x !=y and hence x== y is false, and x <y and hence x>y is false. And x * -y = a negative number and hence < 0. And hence ( x * -y >0) is false. And hence, the above mentioned options holds a true value, and rest of the options holds the false value.

User Joseph Marikle
by
5.8k points