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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Jaish MathewsRank #225 · 11K reputationPosted Jul 24, 2018, 1:22 AM EDT
Bohdan StupakRank #479 · 5.2K reputationPosted Jul 24, 2018, 12:59 AM EDT