Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Linq;
- using System.Text;
- using System.Collections;
- class Program
- {
- static void Main()
- {
- int size = 3;
- int[,] matrixArray = new int[3, 3];
- int counter = 1;
- for (int i = 0; i < size; i++)
- {
- for (int j = 0; j < size; j++)
- {
- matrixArray[i, j] = counter;
- counter++;
- Console.Write("|"+ matrixArray[i,j] + " " + "|");
- }
- Console.WriteLine();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement