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

How does the composition of a star differ from the composition of a planet
What characteristic must be true of a good hypothesis
Quien me dice cual es la respuesta de esto. 4p+2=3p-7
proteins consist of chains of a. amino acids b. lipids c. fatty acids d. carbohydrates
A train that is 80 meters long travels 240 meters in 6 seconds. How many seconds would it take the train to pass through a 480 meter long tunnel.
five reasons why peer pressure may lead to unsafe sexual behaviour.
round 113.6581 to the nearest hundredths place.
26 cm/s = how many m/min
which sentence best illustrates the link between the “american dream” and urbanization in the late 1800s?
Perimeter of dog house is 122 inches the width is 25. How many square feet of carpet do I need to cover the floor of doghouse