TestTri(new int[]{ 1,2,3,4,5 });
TestTri(new int[]{ 5,1,4,2,3 });
TestTri(new int[]{ 5,1,6,4,2,3 });
static void Afficher(int []tab)
for(int i = 0; i != tab.Length; ++i)
Console.Write($"{tab[i]} ");
Console.WriteLine("... il est donc trié");
Console.WriteLine("... il n'est donc pas trié");
static bool EstTrié(int [] tab)
for(int i = 1; i < tab.Length; ++i)
static void TestTri(int [] tab)
Console.Write("Avant : ");
Console.Write("Après : ");