Explain the syntax for 'for' loop.

bookmark

The syntax of a for loop in Go programming language is:

for [condition |  ( init; condition; increment ) | Range]  
{  
   statement(s);  
}