using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { int count; // Count to 5 for (count = 0; count < 5; count++) { // Count range is 0 to 4 Console.WriteLine("Loop {0}", count); } // Outside loop count is 5 because // we stop looping when count is less // than or equal to 5 Console.WriteLine("Outside Loop {0}", count); Console.ReadKey(); // Pause } } }