Question from the C# - Fundamentals test

Write a C# function that displays a matrix.

Medium

What does this algorithm display with the argument:
tab= new int[,] {{1,2},{3,4},{5,6}};

static void AffichageMatrice(int[,] tab){ 	  
    if(tab==null){ 		  	  	 		 	 	 	  
        Console.WriteLine("Erreur");   
    } 		  	  	 		 	 	 	  
    for(int i=0;i<tab.GetLength(0);i++){   
        for(int j=0;j<tab.GetLength(1);j++){
            Console.Write(tab[i,j]);  
            if(j==(tab.GetLength(1)-1)){  
                Console.Write(" . ");
            } 		  	  	 		 	 	 	  
            else{ 		  	  	 		 	 	 	  
                Console.Write(" ; ");   
            } 		  	  	 		 	 	 	  
        } 		  	  	 		 	 	 	  
            Console.WriteLine(" ");
    } 		  	  	 		 	 	 	  
} 
		```         
Author: MaximeStatus: Published(Update)Question passed 729 times
Edit
1
Community EvaluationsNo one has reviewed this question yet, be the first!