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

Select the correct answer. Which expression is equivalent to √48x5, if x > 0? OA. 12x³√3x B. 4x³√3 OC. 4x²√3x OD. 12x²√
"i disagree with what you say but i will defend to the death your rught to say it" how does this apply to modern day
The following table was made to compare the different seismic waves. What correction needs to be made? A. Rayleigh waves have a rolling movement and Love waves
The Precision Scientific Instrument Company manufactures thermometers that are supposed to give readings of 0°C at the freezing point of water. Tests on a large
The depreciation method that does not initially use the residual value in depreciation calculations is the.
sorry for bothering u guys so much lol
3(x+3) ≥ 9+3x HELP PLEASEEE
Atoms and the chemical bonds that connect them cannot be observed with your eyes, so it is necessary to use a a. microscope b. theory c. model d. both (b) and
THE STORY IS TO BUILD A FIRE I WILL MARK BRAINLIEST Title of short story or short story _____To Build A Fire_____________ Author ______________________________
Find the distance between the points (-7,3) and (4,3)