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

What is the best approximation of the solution to the system to the nearest integer values? (6, −2)(6, −2) (7, −2)(7, −2) (−2, 7)(−2, 7) (−2, 6) (image below)
y+23=59solve for y i dont know if i have to add or subtract the 23 and 59
How would I find the length of the side labeled x?
Is the sequence arithmetic? 15, 14.5, 14, 13.5, 13,… If so, give the common difference.
m/-25=8solve for m not good at math need help
What is the function of a Volta in a sunnet?
10 Fish are in a tank. - 3 drowned - 2 swam away - 4 die How many fish are in the tank?
What is the product of the following chemical equation? C3H8(g) + 5O2(g) →
9 hundreds =equals tens
One blood glucose meter always reads 10 too high. Another meter reads anywhere from 5 to 9 too high. Which one is the more precise? which one is the more accura