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

What effect did the Ice Age have on early humans
3. Lesley bought 4 bags of pretzels and 2 boxes of granola bars for $13.50. Landon bought 1 bag of pretzels and 5 boxes of granola bars for $17.55. What is the
NOT a question, ANSWERS. 1. Which of the following terms describes the fact that the mass of the reactants in a chemical reaction is equal to the mass of the p
There are 14 European cities that Sam would eventually like to visit. On his next vacation, though, he only has time to visit 3 of the cities: one on Monday, on
When a number gets assigned to a variable that already has a value __________. the new number overwrites the previous value at that memory location the new numb
Sonya expected to get $100 for her birthday, but she only got $250. What was the percentage decrease of the amount Sonya received?
How many elements are present in the compound Na_2S_2O_3
Look at the system of linear inequalities shown below. {y<−52x+1y≥32x+2 Which of these represents the solution of the system?
Both you and your older brother would like to have $28,500 in 14 years. Because of your success in this class, you feel that you are a more savvy investor than
Describe one continuity in relations between American Indians and USA from 1776 and 1815