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 developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.