NedyalkoKikov

ListOfArray

May 13th, 2016
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace ListOfArrays
  8. {
  9. class ListOFArrays
  10. {
  11. static void Main()
  12. {
  13. ArrinList();
  14. }
  15.  
  16. public static void ArrinList()
  17. {
  18.  
  19. int[] FirstArray = new int[]
  20. {
  21. 10,20,30,40,50
  22. };
  23. int[] SecondArray = new int[]
  24. {
  25. 60,70,80,90,100
  26. };
  27. List<int> ElementsOfArrays = new List<int>();
  28. ElementsOfArrays.AddRange(FirstArray);
  29. ElementsOfArrays.AddRange(SecondArray);
  30. Console.WriteLine(string.Join(", ",ElementsOfArrays));
  31. }
  32.  
  33. }
  34. }
Advertisement
Add Comment
Please, Sign In to add comment