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

Code Example 1

for(int i = 0; i<n ;i++) >              <br/>

Code Example 2

for(int i=0; i<10; i++)   printf("%d ", i)  /* displays:  0 1 2 3 4 5 6 7 8 9 */

Code Example 3

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

Learn ReactJs, React Native from akashmittal.com