c# syntax question - for loop and end of line
<p>I am currently learning c# and reading a few books. I can do quite a few things, however only from modifying examples - it <strong>really</strong> frustrates that I do not actually understand how/why some of the more basic items work.</p>

<p>I have just done a console application that takes arguments and displays them all one by one.</p>

<p>The code is:</p>

<pre><code>using System;

class test
{ static int Main(string[] argsin)
{ 

for (
        int i = 0; 
        i &lt; argsin.Length; 
        i++
    )
Console.WriteLine("Argument: {0}", argsin[i]);
Console.ReadLine();
return -1;
}
}
</code></pre>

<p>Now, this works perfectly, but coming from a basic (no pun!) understand of Visual Basic, how/why does it know to print the correct argument and then go on to the next without quitting the application after the first <code>Console.WriteLine</code>... I feel I have missed the fundamentals of how this works!</p>

<p>Next, why is it that inside the for loop, each line ends with a semicolon apart from <code>i++</code>?</p>

<p>I keep forgetting to add it from time to time, and then when trying to work out why it wasn't compiling, I added one where I wasn't meant to!</p>
