using System; public class Tester { public static void Main() { int counter = 1; int counterb = 0; // Use for loop to generate values from 1 to 100 for (; counter < 101; counter++) { // Use another counter variable to count from 1 to 10 // Print out counter when counterb reaches 10 counterb++; if (counterb == 10) { Console.WriteLine( "counter: {0} ", counter); counterb = 0; } } Console.WriteLine( "\nPlease Press any Key to Exit"); System.Console.ReadKey(); } }