rockonavabrooke1051 rockonavabrooke1051
  • 24-02-2018
  • Mathematics
contestada

Four int variables, x1, x2, y1, and y2, have been declared and been given values. write an expression whose value is the difference between the larger of x1 and x2 and the smaller of y1 and y2.

Respuesta :

MrsWilliams18
MrsWilliams18 MrsWilliams18
  • 06-03-2018
Even though we are using variables, we still know that "difference" means subtraction. So, if the larger is x1 and x2, those variables go first. The smaller, y1 and y2 will go second. So our problem will look like this:

(x1 <  x2 ? x2 : x1) - (y1 < y2 ? y1 : y2)
Answer Link

Otras preguntas

24 inches to 4 feet in simplest form
If three times a number is at least four more than eight times the number, which of the following is true? - The number is at least negative four-fifths. - The
help pls don't get it wrong I have an election tmr to see if I have good grades pls help​
Tracheids, sieve-tube cells, vessel elements, and companion cells are all components of the
in need of desperate help, lol not super desperate, just confused, thanks so much!
what will you make a video on for social studies​
suggest one reason for the drainage density to vary within in a drainage basin​
for science project, you want to dispaly 36 rocks in row, with the same number of rocks in each row find the arrangement that you can use
Please help I’ll mark brainliest!
Based on textual evidence, what can you infer is the reason why Donna "turned in a great shambling drunk's pivot, slamming her lower leg against the Pinto's fen