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

Code Example 1

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

Code Example 2

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

Learn ReactJs, React Native from akashmittal.com