for Loops

for (counter = initial-expression; logical-expression; change-counter)
        statement
  • A for loop is executed as follows:
  • for (i = 5; i <= 30; i = i + 5)
        statement