Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Linq;
- namespace RemoveDuplicates
- {
- class Program
- {
- static void Main(string[] args)
- {
- string[] numbers = Console.ReadLine().Split(',').ToArray();
- string [] numbers1 = numbers.Distinct().ToArray();
- string result = string.Join(",", numbers1);
- Console.WriteLine(result);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement