Changes

Jump to: navigation, search

C Sharp Looping - The for Statement

9 bytes added, 17:00, 17 January 2008
Breaking From Nested Loops
== Breaking From Nested Loops ==
An important point to be aware of when breaking out of a nested for loop is that the break only exits from the current level of loop. For example, the following C# code example will exit from the current iteration of the nested loop when j is equal to 5. the The outer loop will, however, continue to iterate and , in turn execute the nested loop:
<pre>

Navigation menu