Check out example codes for "c for". It will help you in understanding the concepts better.

Code Example 1

int i;

for(i=0; i<5; i++) 
{
	printf("Zahl %d\n", i+1);
}

Code Example 2

int i;
for (i = 0; i < n; ++i) { // n is the number of iterations
	// Code here
}

Learn ReactJs, React Native from akashmittal.com