for (int i=n-1; i>=0; i--) c# code example Example: for loop c# for (int i = 0; i < 10; i++) { Console.WriteLine("Value of i: {0}", i); }