34,333
edits
Changes
→The C# ''for'' Loop
</pre>
Whilst this is somewhat cumbersome it does work. What would happen, however, if you needed to perform this task 100 times or even 10,000 times. Writing C# code to perform this as above would be prohibitive. This is Such a scenario is exactly what the ''for'' loop is intended to handle.
The syntax of a C# ''for loop'' is as follows: