Changes

Jump to: navigation, search

C Sharp Looping - The for Statement

16 bytes added, 16:49, 17 January 2008
Continuing for Loops
== Continuing for Loops ==
Another useful statement for use in loops in the ''continue'' statement. When the execution process finds a continue statement in any kind of loop it skips all remaining code in the body of the loop and begins execution once again from the top of the loop. Using this technique we can construct a for loop which outputs only even numbersbetween 1 and 9:
<pre>
for (int i = 01; i < 2010; i++)
{
if ((i % 2) != 0)

Navigation menu