using System; public class Exercise27 { public static void Main() { int i,j,n; int[,] arr1 = new int[50,50]; Console.Write("\n\nDisplay the upper triangular of a given matrix :\n"); Console.Write("----------------------------------------------\n"); Console.Write("Input the size of the square matrix : "); n = Convert.ToInt32(Console.ReadLine()); Console.Write("Input elements in the first matrix :\n"); for(i=0; i=j) Console.Write("{0} ",arr1[i,j]); else Console.Write("{0} ",0); } Console.Write("\n\n"); } }