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

A compound consisting of atoms of large atomic mass is more likely to require: a. a higher temperature to liquefy b. a lower temperature to liquefy c. less
I just love woodstoves. I think they give off the best kind of heat. It radiates out from all sides and makes a room so toasty and cozy. Also, many of them have
Last time Popocatépetl volcano erupted?
I've been struggling with this question for a while. When it says, " explain in what context you would use each of the words." what does that mean?
Help please. Don't answer if you don't NOT know it.
What is -3 +or- sqrt of -39 / -2
Jacob is for P years old. His niece is five years younger than one third of his age. Write his nieces age in terms of P
Which of the following is an example of verbal communication? A. Waving to an acquaintance. B. Smiling at a baby. C. Shaking the hand of a friend. D. Readin
What are structures in the bone that allow cell to cell contact called?
Can you solve math problems?...