Consider the Below Code,
- int[] intArray = new int[] { 10, 20, 20, 12, 15, 22, 11, 45, 15, 45 };
- intArray.Distinct();
- foreach (int num in intArray)
- {
- Console.Write(num + " ");
- }
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Jaish MathewsPosted Jul 24, 2018, 5:22 AM
Bohdan StupakPosted Jul 24, 2018, 4:59 AM