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

Complete the sentences:I was writing ....................... .I have written ............................. .I have been writing ...................... .I had wr
Factor 40x^3-5y^3 COMPLETELY
how many chromosomes does a coyote have
Hi I've been given the question "Work out 84kg as a percentage of 120kg" please can somebody tell me how to do this? Thanks.
You have to write 0.63 as a fraction. How do you choose the denominator?
What is the solution to x ? 7/3x + 1/3x = 3x + 6/3 + 5/3x
can anyone help me out. i dont know what 9x9 equals. what is the prouduct?
Find the equation of the line parallel to y=1/3x-12 and passing through (0,-9)
why are atoms considered the basic unit of matter
what is eight decreased by 3 times a number equals 2