public static void Main()
int [] tab = new int [6] {5, 8, 3, 2, 6, 4};
Console.WriteLine( "Affichage par while");
Console.Write(tab [i] + " ");
Console.WriteLine("Affichage par for");
for (int j=0 ; j < tab.Length ; j++)
Console.Write(tab [j] + " ");
Console.WriteLine("Affichage par foreach");