C program to print upper triangular matrix

C program to print upper triangular matrix

Output:

Enter the elements of the matrix:
1 2 3
0 4 5
0 0 6
The entered matrix is Upper triangular matrix

Implementation: