#include<stdio.h>
 
int main() {
   int i, j,rows,columns;
   int a[5][5] = {
   	{1,2,3,4,5},
   	{6,7,8,9,10},
   	{11,12,13,14,15},
   	{16,17,18,19,20},
   	{21,22,23,24,25}
   };
   rows = 5; 
   columns= 5; 
 

 
   //Print triangle elements
   printf("Print upper triangle elements ");
   for (i = 0; i < 5; i++)
      for (j = 0; j < 5; j++) {
         // Condition for Upper Triangle
         if (i < j) {
            printf("%d ", a[i][j]);
         }
      }
 
   return (0);
}