Try this:
const int itemsToDisplay = 20; for (int i = 0; i < itemsToDisplay; ++i) { Console.WriteLine(months[i % months.Length] + " = " + names[i % names.Length]); }
1.4m articles
1.4m replys
5 comments
57.0k users