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

What is the Spanish word for Dinner?
Write 63 as a product of prime factors.
The system of equations is coincident.What are the missing values?
Can some one plz answer this question plz it's in the picture and who ever answers it first and correctly will get 50 points and their question as the best
Before Grant could capture Richmond, he first had to defeat Confederate forces in _____.
Simplify.25/55x A.5/11x B.1/2x C.x/2 D.5x/12
Find the balance of a bank account with an initial investment or principal of $1,500 that earns 3.2% interest compounded quarterly after 15 years.
Which words in the sentence are the adverb clause? Her friend Sima plans to go to the county fair if she finishes her project. A. county fair if she finishes
Which sentence correctly uses an objective case pronoun? A. The person wearing the mascot costume is him. B. Them played basketball for over three hours. C. Mal
do you think law enforcement cameras are an invasion of privacy