abkanna abkanna
  • 02-03-2020
  • Computers and Technology
contestada

Find the true Value if: int x = 15; int y = 100;
(x >y);
! (x< 15)
(x<= 15)
(x == y);
(x != 5);
(x*-y>0)

Respuesta :

problemsolver2019
problemsolver2019 problemsolver2019
  • 09-03-2020

Answer:

! (x< 15)

(x<= 15)

(x != 5);

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.

Answer Link

Otras preguntas

Which digit in the number 53,941 would be changed to form 58,941? How would the value of 53,941 change?
Round 47125 to the nearest ten, nearest hundred, nearest thousand, and to the nearest ten yhousand
-3/4 (-4) please provide answer and how to solve it
43.586 rounded to the nearest hundredth
A scientist wants to raise the temperature of a 0.10-kilogram sample of glass from –45°C to 15°C. How much heat energy is required to produce this change in te
A 1/4 turn clockwise
Evaluate 14.3 + 8.2 x 30
Write the word form for 2.251
g5-h3 if g=2 and h=7 solve expression
How to put this an equation (an athlete trains for 115min each day for as many days as possible. Write an equation that relates the number of days d that the at