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

What are the values of i and j after the following code snippet is run
int i = 10;
int j = 20;
int count = 0;
while (count < 5)
{
i = i + i;
i = i + 1;
j = j - 1;
j = j - j;
count++;
}
System.out.println("i = " + i + ", j = " + j);
a) i = 45, j = 1
b) i = 351, j = 0
c) i = 351, j = 2
d) i = 1311, j = 35

Respuesta :

Otras preguntas

What's is the relationship between Henry May and William Burke?
What advantages do stems give vascular plants?
Simplify the expression d-e(3d+8)
If 6 tomatoes are for $4, how much does 15 tomatoes cost?
from 54,271   Choose the number that has the digit 5 with a value that is 10 times more than the value of the digit 5 in the number. (a) 352,471(b)  543,471(c)
Words to match expression 3+(4 x 12)
Shannon had 765 cards in her baseball collection.  She sold 153 of the cards to purchase a new iPod.  What is the percent of change in the number of Shannon's b
make a list of 25 different integer calculations that equal 36 including addition, subtraction, multiplication, and division
what landforms start with the letter e
What is the product of eight and one hundred twenty-five