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

Which lists these numbers in order from least to greatest? –14.6, 159, 1.07, –1.295, 24.6 a. 1.07, –1.295, –14.6, 24.6, 159 b. 1.07, –14.6, 159, 24.6, –1.295
Which of the following persons was NOT an explorer? a. Ferdinand Magellan b. Vasco da Gama c. Henry the navigator d. Henry Hudson
Which of the following is NOT a major way individuals exercise their political power?
What was President Jefferson's top priority in his agenda? a. his welfare policy b. his economic policy c. his foreign policy d. education reform
a substance floats or sinks in another because of its relative
what is 18/25 simplified
Solve for x: |2x+6| -4 = 20 a. x= 9 and x= 11 b. x= -9 and x=15 c. x=9 and x=-15 d. No solution
I don't get how to even do this its solving equations with variables on each side. 8y-3=6y+17
How do you get the answer to 10+12y=2y+40
If the relative frequency of getting a 'six' on a dice is 0.2, how many sixes would you expect to get in 200 throws of the dice?