public static void Main()
Console.WriteLine("--- FIN ---");
int[] tab = new int [6] {5 , 8 , 3 , 2 , 6 , 4};
Console.WriteLine("Affichage à l'aide d'une boucle while :");
while (index < tab.Length)
Console.Write( tab[index] );
Console.WriteLine("Affichage à l'aide d'une boucle for :");
for(int i = 0 ; i < tab.Length ; i++)
Console.WriteLine("Affichage à l'aide d'une boucle foreach :");
foreach(int element in tab)
Console.Write( element );
int[] tab = new int[] {5 , 8 , 3 , 2 , 6 , 4};
for(int i = 0 ; i < tab.Length ; i++)
if( i != (tab.Length -1) )
int[] tab = new int [] {5 , 8 , 3 , 2 , 6 , 4};
for(int i = 0 ; i < tab.Length -1 ; i++)
Console.Write( tab.Length -1 );
int[] tab = new int [] {5 , 8 , 3 , 2 , 6 , 4};
for(int i = tab.Length - 1 ; i >= 0 ; i--)
Console.Write("Saisir la taille du tableau : ");
string lectureClavier = Console.ReadLine();
int taille = Convert.ToInt32( lectureClavier );
int [] tab = new int [taille];
for(int i = 0 ; i < tab.Length ; i++)
for(int i = 0 ; i < tab.Length ; i++)
int[] tab = new int [] {5 , 8 , 3 , 2 , 6 , 4};
for(int ligne = 0 ; ligne < tab.Length ; ligne++)
for (int i= 0 ; i <= ligne ; i++)