while loop with a counter.

Olivia

Verified seller
Staff member
Verified Trusted Seller
Nov 13, 2018
1,249
425
113
russiancarders.se
#1
I n reality, a for loop is just a while loop with a counter. The sam e statem ent can be written as such:
Set the counter to 0;
While (the counter is less than 5)
{ Drive straight for 1 mile;
Add 1 to the counter; }
 

Log in

Online statistics

Members online
0
Guests online
46
Total visitors
46