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

Why is sodium sulphate hemihydrate called as "Plaster of Paris"?
what is a high structure part of a church which has 5 letters
what is a high structure part of a church which has 5 letters
The function of the eardrum in the middle ear is to
Mini-Project: Cents and the Central Limit Theorem 1. Collect a sample of at least 50 pennies by setting aside all the pennies you receive in change for severa
What were the major causes of WWII? Please include at least 4 answers.
The function of the eardrum in the middle ear is to
The function of the eardrum in the middle ear is to
What were the major causes of WWII? Please include at least 4 answers.
The function of the eardrum in the middle ear is to