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 did some americans believe the fugitive slave act was unfair
Ten times four ones equals blank ones equals blank
A building casts a 50-foot shadow. Alex is 5 feet tall and casts a 6-foot shadow. Approximately how tall is the building? a. 60 ft b. 24 ft c. 50 ft d. 42 f
Which expression could be a calculator’s display for the number 135,000,000,000,000? A. 0.135e15 B. 1.35e14 C. 13.5e13 D. 134e−14
During the first two years of World War 1, Russia
Which presidential power is a check on the authority of the judiciary?
An active student injured his knee playing basketball and has been advised by his doctor to avoid impact activities that cause heavy force on his bones. What is
80 is 1/10 of what???do you know
281 480 100 what place value is the 8 in
Which best describes the underlined words in the sentence? *A group of stars* is a constellation. A. simple subject B. complete subject C. compound subject