For Loops

Olivia

Verified seller
Staff member
Verified Trusted Seller
Nov 13, 2018
1,249
425
113
russiancarders.se
#1
Another looping control structure is the for loop. This is generally used when a program m er wants to loop for a certain num ber of iterations. The driving direction Drive straight down Destination Road for 5 m iles could be converted to a for loop that looks som ething like this:
For (5 iterations)
Drive straight for 1 mile;
 

Log in

Online statistics

Members online
0
Guests online
43
Total visitors
43