Medium
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]+".");
}
}
Edit
0
Community EvaluationsNo one has reviewed this question yet, be the first!
Similar QuestionsMore questions about C#
7
Create an abstract Vehicle class implementing an ICarbody interface4
The PFX Framework:3
Simple inheritance between a parent class and a child class in C#2
Write a C# class with a private int age field and getter and setter methods for it.2
Initialize a new Vehiclue object containing a string field in C#