Print elements of upper triangular matrix
Print elements of upper triangular matrix
Input: The Square Matrix of length N.
Output: The Upper Triangle Matrix.
Step 1: Input The Order of the Matrix: m x n.
Step 2: Input The Elements of the Matrix A[I, J].
Step 3: Initialize i, j.
Step 4: Check if i< rows and increment i(i++).
Step 5: Check if j< column and increment j(j++).
Print a[i][j].
Step 6: Stop.