Changes

Jump to: navigation, search

C Sharp Looping with do and while Statements

33 bytes added, 00:39, 19 March 2009
The C# while Loop
}
</pre>
<google>ADSDAQBOX_FLOW</google>
In the above example the ''while'' expression will evaluate whether the ''myCount'' variable is less than 100. If it is already greater than 100 the code in the braces is skipped and the loop exits without performing any tasks.
In the above example the ''while'' expression will evaluate whether the ''myCount'' variable is less than 100. If it is already greater than 100 the code in the braces is skipped and the loop exits without performing any tasks. If, on the other hand, ''myCount'' is not greater than 100 the code in the braces is executed and the loop returns to the ''while'' statement and repeats the evaluation of ''myCount''. This process repeats until the value of ''myCount'' is greater than 100, at which point the loop exits.
== C# do ... while loops ==

Navigation menu