[Solved] C# How to start list count on 0 [closed]


You have your counter incrementing in the wrong place.

int count = 0;

foreach (string[] element in logBook) {

   Console.WriteLine ("#{0}: {1}", count, element[0]);
   count++;   // Increment after you print
}

solved C# How to start list count on 0 [closed]