For loop statement executes a block of statements repeatedly for fixed number of times. It is used when the user knows how many times you want to execute the code.
Syntax
for (intialization expression; test expression; increment expression)
{
//Block of statments to execute
}
Defines three expression
In for loop you can have multiple intializaton and increment expressions separated by commas but you can't have more than one test expression eg:
for(i=0,j=0; i<10; i++,j++)