How to print portion of the List<int>, it contains 30 elements but i only want to print first 7 elements?
List remains unchanged but is should only prints first 7 elements of the list

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.