Archived
What the following code displays with the argument:
tab = {21,-5,87,6,1} ;
static void AffichageTab1D(int[] tab){
int longueur = tab.Length; if(longueur>1){
for(int i=0;i<longueur-1;i++){
Console.Write(tab[i]+";");
}
Console.Write(tab[longueur-1]+".");
}
else{
Console.Write(tab[longueur-1]+".");
}
}
Similar QuestionsMore questions about C#