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

Code Example 1

for (int i = 0; i < 5; i++) 
{
  Console.WriteLine(i);
}

Code Example 2

for (int i = 0; i < 5; i++) 
{
  if (i >= 4)
     {
       break;
     }
  Console.WriteLine(i);
}

Code Example 3

for (statement 1; statement 2; statement 3) 
{
  // code block to be executed
}

Code Example 4

for (int i = 0; i < 5; i++)
{
    Console.WriteLine(i);
}

Code Example 5

for (int i = 0; i < 10; i++)
{
    Console.WriteLine("Value of i: {0}", i);
}

Learn ReactJs, React Native from akashmittal.com