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 word best completes this conversation? Mónica: ¿Cómo está el tiempo en Puebla? Eric: Hay muchas nubes. Está muy ___________.
4m = ? dm please help me
The National Response Framework is:
Define extravagance
The length of a phone conversation is normally distributed with a mean of 4 minutes and a standard deviation of .6 minutes. What is the probability that a conve
- 6x +15 Can anyone please show me the steps of solving this equation​
Not sure how to do this, I’m very confused. Anything helps, thank you !!
Which line from the song "The Lonesome Death of Hattie Carroll" best supports the inference that Hattie Carroll was not a wealthy woman? "William Zanzinger kill
The ordered pairs show (height in inches, men’s shoe size). (70, 9.5) (67, 8) (69, 9) (72, 11.5) (68, 7.5) (60, 6) (71, 11) Use the regression calculator to g
which of these is an indication that a chemical reaction has occurred? 1) melting of a substance 2) boiling of a substance 3) formation of a precipitate 4) fr