princessgabbee1045 princessgabbee1045
  • 07-02-2024
  • Computers and Technology
contestada

How many times does the following loop run
int i = 0;
int j = 1;
do
{
System.out.println("" + i + ";" + j);
i++;
if (i % 2 == 0)
{
j--;
}
}
while (j >= 1);
a) 0 times
b) 1 times
c) 2 times
d) 4 times

Respuesta :

Otras preguntas

How do landforms affect life on Earth?
Use absolute value to express the distance between −10 and 16 on the number line. a. |−10 − 16| = −6 b. |−10 − 16| = 6 c. |−10 − 16| = −26 d. |−10 − 16| = 2
solve the system using elimination:5x+4y=123x-3y=18Please show step-by-step instructions
can somebody please write word problem for my expression: 5+(4-1)
Why did General MacArthur leave his station in the Philippines?
Which movement of particles would be most affected by a disorder that causes damage to carrier proteins?
help please!!!! 5. which statement shows correct order and agreement between articles, nouns, and adjectives? a. Roberto es un chico muy reservado b. Roberto es
How many individual strands is DNA composed of?
Cheese is high in calcium and what other nutrient
When driving through a curve at a speed higher than the posted speed limit, your vehicle will need more?