using System; using System.Text; namespace CSharpForLoopCounter1 { class Program { static void Main(string[] args) { //Loop over the numbers from 1 to 100 using for loop for (int counter = 1; counter < 101; counter++) { // If the number can be divided by 10 without any remainder display it if (counter % 10 == 0 ) Console.WriteLine("Counter: {0}", counter); } //Prompt the user to enter any key to exit the application Console.WriteLine("\nPress any key to exit"); Console.Read(); } } }