سلام
دوست عزیز بفرما
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp1
{
class Program
{
static void Main(string[] args)
{
int[,] a = new int[5, 2] { { 0, 0 }, { 1, 5 }, { 2, 6 }, { 3, 7 }, { 4, 8 } };
int i, j;
Console.WriteLine(string.Format("{0,45}","Befor Sorting"));
foreach (int item in a)
{
Console.WriteLine("{0,25}", item);
}
Console.WriteLine("{0,45}"," After Sorting");
for (i = 0; i < 5; i++)
{
for (j = 0; j < 2; j++)
{
Console.WriteLine("{0,25}","a[{0},{1}] = {2}", i, j, a[i, j]);
}
}
Console.ReadKey();
}
}
}