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

A Coast Guard ship patrols an area of 125 square miles. The area the ship patrols is a square. About how long is each side of the square? Round your answer to t
Write a newspaper headline about the Boston tea party from the points of view of a loyalist and a patriot. Explain your headlines.
the process that removes metabolic waste products from an organism is known as
write the ratio 6 ft to 4yd as a fraction in simplest form.
the process that removes metabolic waste products from an organism is known as
What is one half added to three tenths
There are 6 pencils in a box. 3 of the pencils are red, 2 are blue and 1 is green. A pencil is taken out of the box without looking. What is the probability tha
9 to the x-5 power=27
The sum of two numbers is 104 and one exceed the other by 10. What are the numbers?
who do scholars believe first wrote Beowulf