using System; namespace CSharpForLoopCounter2 { class Program { static void Main(string[] args) { //Loop over the numbers from 1 to 100 using for loop for (int counter = 1; counter <= 100; counter++) { if (counter < 10) Console.Write(" "); // If the number can be divided by 10 without any remainder display it with a new line if (counter % 10 == 0) Console.WriteLine(counter); // else (The number can notbe divided by 10) display it with a space next to it else Console.Write(counter+ " "); } Console.WriteLine("\nPress any key to exit"); Console.Read(); } } }