The for loop, syntax
•
for ( init_variables; pre-condition; statements )
•
{
•
statements…
•
}
•
e.g.
•
•
for ( int i = 0; i < 100; i++ )
•
{
•
statements…
•
}
•
•
Note: i only has scope within the loop