for loops in C with incrementing a counter and short-hand counter++ : <pre><code>for i := 0 to 5 do 
begin 
i := i + 1;
    counter++ 
end; 
</code></pre>

<p>I am trying to write the code for a loop in C that will increment a  counter from 0 to 5, writing out the counter value with each iteration. Use the C  short-hand: counter++ to increment counter by 1 in each iteration of the loop. Am I doing it right?</p>
