for loops are control statements that
are a basic looping construct in C. They are analogous to do loops in FORTRAN. The format of a for loop is
for (begin ; end ; increment)
{statements}
where begin is the expression that
is executed at the beginning of the loop; end is the logical expression that tests for loop termination; and increment is the expression that is executed at the
end of the loop iteration (usually incrementing a counter).