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

The person who receives financial protection from a life insurance plan is called
What is the factored form of x2 + 2ax + a2?
Most candidates running in a general election tend to move their campaigns toward the __________. a. far right of the party line b. far left of the party line c
. Read this passage from “The Monkey’s Paw.” What can you infer about Mr. White’s actions? But her husband was on his hands and knees groping wildly on the flo
10 Points!! I want to say it’s (-5,6) but I’m not sure :/ I’m terrible in math
Franco has fallen ill and lost his job, and his wife has left him due to his problem with heroin. his friends and family are telling him that he is an addict mo
Which sentence from the Declaration of Independence best develops the idea that King George abused his executive powers in relation to the colonies
Erikson believed that successful resolution of intimacy versus isolation prepares the individual for the middle adulthood stage, which focuses on ____
hello can you please help me posted picture of question
solve the equation -8=-(×+4)