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

What is the output of the code snippet given below
int i;
int j = 0;
for (i = 0; i < 5; i++)
{
if (i % 2 == 0)
{
i = i + 2;
j++;
}
else
{
i++;
j = j + 2;
}
j++;
}
System.out.println("i=" + i + ", j=" + j);
a) i=7, j =7
b) i =7, j =6
c) i =6, j =7
d) i =5, j =5

Respuesta :

Otras preguntas

Which points are on the graph of f(x)=(1/3)^x? Select each correct answer 1. (-1, -1/3) 2. (3, 27) 3. (-2, 9) 4. (0, 1)
If the nth term of a sequence ison what is the 12th term?If the nth term of a sequence is 28-3n what is the 7th term?​
Which function has a domain and range that includes all real values?
Which sentence includes a noun clause that functions as a subject? Select the best answer from the choice provided. A. They decided that they would get marr
Colonial protists have been hypothesized to be the precursors to multicellular organisms. This hypothesis suggests that the individual unicellular members of th
Someone please help ASAP. I would really really appreciate it if u can. I will mark brainliest
Help me -ayyyyy Idk I’m just having fun
SOLVE FOR 20 pls hurry
Which was most important to Congress’s plan for Reconstruction?
YAHHHH, GET IN TO IT!!!!!!!!!!!