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!
6
Write a C# class with a private int age field and getter and setter methods for it.4
Initialize a new Vehiclue object containing a string field in C#2
The PFX Framework:2
What is the new syntax for creating an object in C# 9.0?4
An event in an ASP.NET application:2
What is a property in C#?6
Simple inheritance between a parent class and a child class in C#