christianmason7821 christianmason7821
  • 22-01-2024
  • Computers and Technology
contestada

What is the value of k after this code completes?

int i = 0, j = 0, k = 0;
while (i < 3) {
i++;
j = 0;
while (j < 3) {
j++;
k = k + i + j;
} }

1) 36
2) 54
3) 9
4) 6

Respuesta :

Otras preguntas

simplify the expression -9z-13z
Skin color in a certain species of fish is inherited via a single gene with four different alleles. one fish of this type has alleles 1 and 3 (s1s3) and its mat
When should standard precautions be use by healthcare workers caring for patients? A.only when a patient is known to have a communicable infection B.all the t
Which statement is true? In economics, land refers to all the natural resources found on land alone. In economics, capital includes only tangible objects used f
The erie canal allowed for the transportation of goods from
Which ordered pairs are a solution are a solution to the equation? y = 8x Select all that apply a) (3, -24) b) (2,16) c) (1,8) d) ( -16,-2) e) (-3,-24)
Marsha can cook 5 cakes or 10 pizzas in an hour. howard can cook 3 cakes or 12 pizzas in an hour. which item should each person specialize in?
Rick's test had 8 pages. He lost 312 points on each page. His teacher said he can do corrections, and only lose half of that amount. If he does all his correc
The philadelphia city council decided to bar skateboarders from love park. some of the council's actions are listed below in chronological order. which answer c
Dubbed as the "king of pop," who began as a motown artist and stayed with the label through the 1980's?