The for loop, syntax
•
for ( init; pre-condition; statements )
•
{
•
statements…
•
}
•
•
Init can have multiple declarations and statements can
have many statements separated by commas:
•
•
for ( int i = 0, j=10; i < j; i += 5, j++ )
•
{
•
statements…
•
}