ronyaewicks ronyaewicks
  • 14-09-2021
  • Computers and Technology
contestada

APPLY
1. Looking at the following loop, what does the "i < 6" mean?
for (i = 0; i < 6; i++){
forward();
}
1. Looking at the same loop above, what does the "i++" mean?

Respuesta :

tonb
tonb tonb
  • 14-09-2021

Answer:

i<6 is the "end guard". This means that the loop continues while this is true, and ends when this is false.

i++ is the "continuation", it is the operation executed when the loop continues. i++ increases the value of i by one.

Answer Link

Otras preguntas

Give your thoughts on the learnings you gained about NSTP100 and its relation to your life.
ASSEMBLEZ USE THE VERB AVOIR AND COMBINE ELEMENTS
P (10 and club)= I need help!!
Find the value of x that makes A || B. B 2 42= 3x20 and 25 = x + 20 x = [?]
A ladder ft 0 ft long rests against vertical wall. If the bottom of the ladder slides away from the wall at a rate of 0.7 of ft/s, now fast (in rad/s) is the an
5. In a scientific investigation, a scientist is testing to see the effect of light intensity (strength of the light) on plant growth. During her investigation,
book: running out of time by Margaret Peterson Haddix Cite examples of life in 1996 that Jessie is learning about throughout her Journey. chapters 8-11
How is the Bears and Packers rivalry different from the Celtics and Lakers rivalry?
Write +/99 +/44 in the form avb where a and b are integers.
The human resource (HR) director of a large corporation wishes to study absenteeism among its mid-level managers at its central office during the year. A random