Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int counter = 0;
- for (int x=0; x<=10; x+=2)
- {
- counter++;
- Console.WriteLine("Looping through the for loop {0} times", counter);
- Console.WriteLine("The value of x is: {0}", x);
- }
- Console.ReadKey();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement