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

Although Shackleton's mission to cross Antarctica by foot failed, the Imperial Trans-Antarctic Expedition is hailed as a milestone in expedition history. Why? A
Scientists have proved that genes play no role in self-esteem.
What type of weight training requires the fewest number of repetitions?
Find the next term in the sequence 1, 4, 9, 16, 25, ….
Two days after hitler's invasion of ___,Britain anf france declared war on Germany
which event will follow DNA replication in a cell cycle
which best describes why winds at the beach change direction between day and night
What was the modern devotion
Trevor bought 8 gallons of paint to paint hishouse. He used all but 1 quart. How manyquarts of paint did Trevor use? (Lesson 10.4)CA 7 quarts(C 31 quartsB 15 qu
clasificacion de las empresas segun su actividad o giro primarias segundarias y terciarias