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

Who was to blame for the Trojan War? The Greeks, the Trojans, the gods or a specific individual?
1) Find the 4th term if the sequend in which a1 = 2 and an+1 = -4an + 2. 2) Find the third iterate, x3, of the function f(x) = 3x + 5 for an initial value of x0
Why does it ecology matter?
Most of the water in plants is lost through the ____.
How Do You Appreciate the role of spherical mirrors in daily life ?
what did Walter Fleming identify during cell division
the goal of the litter cleanup drive was to collect 500pieces of trash. what percent of this goal did the 30paeticipants achieve?
Jabary is thinking of 3 numbers the greatest number is twice as large as the least number the middle number is 3 more than the least number the sum of the 3 num
in the xy plane below, point c has coordinate (6,9). what is the equation line contains point o and c
How do you solve the area of a square