Using C# (or VB.NET) which loop (for loop or do/while loop) should be used when a counter is required?
Does it make a difference if the loop should only iterate a se
Just for completeness, you could also use option D:
for (int iLoop = 0; Criteria; iLoop++) { // work here }
(where Criteria is "to keep running")
Criteria
the condition in a for loop doesn't have to involve iLoop. Unusual, though, but quite cute - only evaluates before work, though.
for
iLoop