what is this 2d array doing i dont understand?
class Program { public static void Main(string[] args) { string plainText="computer science rocks"; plainText = plainText.ToUpper(); int stringIndex = 0; //declare and dmension 2d array string[,] matrix = new string [4,11]; for (int col = 0; col < 4;col++) for(int row = 0 ;row<11;row++) if(stringIndex<plainText.Length) { matrix[col,row]=plainText.Substring(stringIndex,1); stringIndex++; } else break; // Display plain text msg in the matrix format for (int col = 0;col<4;col++){ for (int row =0;row<11;row++) Console.Write(matrix[col,row]); Console.WriteLine(); } //genarate and display coded msg string codedtext = ""; for(int row = 0; row<11;row++) for (int col=0;col<4;col++) codedtext+=matrix[col,row]; Console.WriteLine(codedtext); output: CIOEMNPCUET ERRO CSKCS