For loop is the same as the while loop. It is used to repeat a block of code again and again. But the syntax of the for loop is different quite different from the while loop. Syntax for(initializationState; conditionState; updationState) { ...

Markdown supported · ⌘↵ to post
No responses yet.