Programming: The FOR Loop in C Explained and Example
Share
The for loop explained and an example given. While the loop iterates, i will be incremented by one on each iteration.
The syntax is: for (variable declaration; condition; variable change) { Code to execute while the condition is true } I.e. for (int i = 0; i < 10; i++) { Code to execute while i is less than 10 }