Advertisement
dsavov_02

{0}{1}

Feb 24th, 2019
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. using System;
  2. using System.Linq;
  3. using System.Collections.Generic;
  4. public class Program
  5. {
  6. public static void Main()
  7. {
  8. int[,] matrix =
  9. {
  10. {2, 3, 4, 5},
  11. {11, 15, 6, 7}
  12. };
  13.  
  14. for(int row = 0; row < matrix.GetLength(0); row++)
  15. {
  16. for(int col = 0;col < matrix.GetLength(1); col++)
  17. {
  18. Console.Write(matrix[row, col]+" ");
  19. }
  20. Console.WriteLine();
  21. }
  22. }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement