public static void Main()
Console.WriteLine("Enter the number of rows:");
int r = Convert.ToInt16(Console.ReadLine());
Console.WriteLine("Enter the number of Columns:");
int c = Convert.ToInt16(Console.ReadLine());
int[,] arrvalues = new int [r,c] ;
arrvalues[i,j] = Convert.ToInt16(Console.ReadLine());
lowertriangle+=arrvalues[i,j];
Console.WriteLine("Upper Triangle SUm = " + lowertriangle);
uppertriangle+=arrvalues[i,j];
Console.WriteLine("Lower Triangle SUm = " + uppertriangle);