Advertisement
Guest User

Untitled

a guest
Nov 22nd, 2019
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. using System;
  2. using System.Linq;
  3.  
  4. namespace RemoveDuplicates
  5. {
  6. class Program
  7. {
  8. static void Main(string[] args)
  9. {
  10. string[] numbers = Console.ReadLine().Split(',').ToArray();
  11. string [] numbers1 = numbers.Distinct().ToArray();
  12. string result = string.Join(",", numbers1);
  13. Console.WriteLine(result);
  14. }
  15. }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement