christianbabona christianbabona
  • 23-03-2017
  • Computers and Technology
contestada

which of the following will not loop exactly 10 times? for (int x=0; x<10; x++) {} for (int x=1; x<=10; x++) {} for (int x=0; x<=10; x++) {} for (int x=2; x<=20; x +=2) {}

18 points

Respuesta :

xjkbel
xjkbel xjkbel
  • 23-03-2017

for (int x=0; x<=10; x++) {}

This will loop 11 times as it begins at zero and loops all the way up to and including ten. 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10.

Answer Link

Otras preguntas

Help please!!!!! Thank uuuu
Hello can I get some help please?​
Write the condensed formula from left to right, starting with (CH3)x where x is a number.
Emily put $3000.00 in a 2 year CD paying 4% interest compounded monthly. After 2 years she withdrew all her money. What is the amount of the withdrawl?
Hep pleaseeeee! Tyyy
Easy Spanish easy points
Welch Corporation​'s trial balance shows $ 158,000 face value of bonds with a discount balance of $ 1,800. The bonds mature in 10 years. How will the bonds be p
Which statement are true about the solution 2
Psychology 1A Question: Which of the following is not one of the theories that have been proposed to explain why we need sleep? Answers: Sleep protects us and
Aluminum and oxygen react according to the following equation: 4Al + 3O2 -> 2Al2O3 In a certain experiment, 4.6g Al was reacted with excess oxygen and 6.8g o