It executes a block of code until the given condition is true.
Syntax :
for( initialization ; condition ; increment/decrement)
Example :
Output for the above code : 01234