Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //for-loop structure
- for (initializer; condition; iterator)
- {
- //Loop body - repeated upon every iteration, as long as the condition is met.
- }
- //for-loop example
- for (int i = 0; i < 5; i++)
- {
- Console.WriteLine("Iteration: " + i.ToString());
- }
- //OUTPUT:
- //Iteration: 0
- //Iteration: 1
- //Iteration: 2
- //Iteration: 3
- //Iteration: 4
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement