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

The special at a local pizza place says you can choose any 3 toppings from a list of 5. How many possible combinations are there?
A meter is an SI unit. Which quantity might you measure in meters?
line J passes through points (-6,1) and (-3,6) . Line m is parallel to line j and passes through point (15,-1).what is the equation of line m ?
What value of x will make 4x-1=4x+7 true ?
The sum of twice a number and 10 is 36
If the divisor is 40 what is the least 3 digit dividend that would give the remainder of 4
evaluate u+ xy for u=9, x=9, y=7
Convert 15 years to seconds
a rocket lift off the surface of earth with a constant acceleration of 20 m/sec^2 .how fast will the rocket be going 1 min latter?
Matt wrote the number four million three hundred five thousand seven hunderd sixty as 4,305,500 decribe his error