using System;
class Program
{
static void Main()
{
int rows = 2;
int columns = 2;
int[,] matrix = new int[rows, columns];
for (int i = 0; i < rows; i++)
{
for (int j = 0; j < columns; j++)
{
do
{
Console.Write($”Enter a positive number for matrix[{i},{j}]: “);
matrix[i, j] = Convert.ToInt32(Console.ReadLine());
if (matrix[i, j] <= 0)
{
Console.WriteLine(“That is not a positive number. Please try again.”);
}
} while (matrix[i, j] <= 0);
}
}
Console.WriteLine(“Matrix entered:”);
for (int i = 0; i < rows; i++)
{
for (int j = 0; j < columns; j++)
{
Console.Write(matrix[i, j] + ” “);
}
Console.WriteLine();
}
}
}