NedyalkoKikov

TwoDimensionArr

May 14th, 2016
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 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 TwoDimensionArr
  8. {
  9. class TwoDimenArr
  10. {
  11. static void Main()
  12. {
  13. int[,] numbers = new int[,]
  14. {
  15. {1,2},
  16. {3,4},
  17.  
  18. };
  19. for (int i = 0; i < numbers.GetLength(0); i++)
  20. {
  21. int first = numbers[i, 0];
  22. int second = numbers[i, 1];
  23.  
  24. Console.WriteLine("{0},{1}",first,second);
  25. }
  26. }
  27. }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment