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

what is a 'birthday suit'?
Julius Caesar, hero or tyrant?! And why????
how reliable are grammar checkers?
how can I solve this square of binomial? (5d - 7d^2t)^2?
A second baseman tosses the ball to a first baseman, who catches it a the same level from which it was thrown. The throw is made with an initial speed o 19.0 m/
Find the domain of each rational expression. f(x)=5x-7/4
A second baseman tosses the ball to a first baseman, who catches it a the same level from which it was thrown. The throw is made with an initial speed o 19.0 m/
Write the equation For a Line that intersects points(1,3) And (2,5) which one is a.y=x+2 B.y=2x+1. C.y=3x-3. D.Y=-x+3 For me is letter B.please help
Find the domain of each rational expression. f(x)=5x-7/4
Our body needs iron. Certain foods are rich in iron and iron tablets are usually recommended by doctors. but neither the food nor tablets are hard like iron? Wh