c cycle for code example
Example 1: for loop in c
for ( init; condition; increment ) {
statement(s);
}
Example 2: for loop in c
int i;
for (i = 0; i < n; ++i) { // n is the number of iterations
// Code here
}
for ( init; condition; increment ) {
statement(s);
}
int i;
for (i = 0; i < n; ++i) { // n is the number of iterations
// Code here
}