coolmanwill5704 coolmanwill5704
  • 10-01-2024
  • Computers and Technology
contestada

What will the values of x and y be after this code segment runs?
int x = 100;
int y = 100;
if (x <= 100)
{
if (y > 100)
{
x = 200;
}
else
{
x = 99;
}
}
else
{
x++;
}
y = x + y
1) x = 100, y = 200
2) x = 101, y = 100
3) x = 101, y = 201
4) x = 99, y = 199

Respuesta :

Otras preguntas

46% of 18.5 is what number
The best way to eat spaghetti is A. twirling it around a large spoon. B. twirling it around a fork. C. cutting it up. D. mixing the sauce and spaghetti together
What event caused the establishment of the United States Department of Homeland Security?
A family went out to dinner and the bill was 113. If they want to leave a 19% tip, how much tip should they leave?
What is 1/5 out of 40
A high bmi is not associated with an increased 6 risk when The person has a small amount of muscle mass. The person does not look overweight The person exercise
Find the lowest common denominator of 3/4 and 5/8
identify the gases that both plant and animal cells use for life processes
Half of the polar bears in a small population die. This population may experience changes due to
Why should Romans not turn against the new rulers?