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

Match each element with the number of atoms found in one molecule of this compound: C5H7N (nicotine)
Round 14.49 to the nearest whole number
Which chart correctly describes the properties of magnets and electromagnets?
How do you expand and simplify (x-8)(x+5)
Write possible negative effects of crime in your community?
What is a disadvantage of using genetic engineering? reduced effectiveness of pesticides pharmaceuticals edible vaccines drought and salinity tolerance
How many cubic inches of material do you need to make a solid rubber ball with a diameter of 3 in.? Round your answer to two decimal places.
Who invaded England in 1066 AD, bringing a variety of the French language with them.
Compare and contrast the processes of evaporation and condensation
How did Cold War rivalries affect west and central Africa