Archived
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(" ");
}
}
0
Community EvaluationsNo one has reviewed this question yet, be the first!
7
Create an abstract Vehicle class implementing an ICarbody interface4
The PFX Framework:2
Initialize a new Vehiclue object containing a string field in C#2
An event in an ASP.NET application:2
What is the new syntax for creating an object in C# 9.0?2
Write a C# class with a private int age field and getter and setter methods for it.4
Simple inheritance between a parent class and a child class in C#