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

A snake travels 4 inches per second. How would you convert this speed to feet per minute using conversion factors?
What were 3 main causes of the American Revolutionary War?
The following balances were reported by Sparky Co. at December 31, 20x2 and 20x1: December 31, 20x2 December 31, 20x1 Inventory $260,000 $290,000 Accounts Payab
Does bacteria show sensitivity ?
What was the main difference between the government in the city-state of Athens and the government in the city-state of Sumer? © A. The government in Athens was
Ma) 36m2 - 48mn + 16n​
50 POINTS ANSWER QUICK
Which of the lists is in order from smallest to largest? 1,330; 3,130; 3,310; 3,031 3,130; 3,031; 3,310; 1,330 1,330; 3,310; 3,031; 3,130 1,330; 3,031; 3,130; 3
The following data has been collected about Keller Company's stockholders' equity accounts: Common stock $10 par value 20,000 shares authorized, 10,000 shares i
13.14. Why does a person feel weightlessness during freefall?​