C#: Display the lower triangular of a given matrix
Write a program in C# Sharp to print or display the lower triangular of a given matrix.
Sample Solution:-
C# Sharp Code:
Sample Output:
Display the lower triangular of a given matrix : ---------------------------------------------------- Input the size of the square matrix : 3 Input elements in the first matrix : element - [0],[0] : 1 element - [0],[1] : 2 element - [0],[2] : 3 element - [1],[0] : 4 element - [1],[1] : 5 element - [1],[2] : 6 element - [2],[0] : 7 element - [2],[1] : 8 element - [2],[2] : 9 The matrix is : 1 2 3 4 5 6 7 8 9 Setting zero in lower triangular matrix 1 2 3 0 5 6 0 0 9
Flowchart:

C# Sharp Code Editor:
Contribute your code and comments through Disqus.
Previous: Write a program in C# Sharp to find the sum of rows an columns of a Matrix.
Next: Write a program in C# Sharp to print or display upper triangular matrix.
What is the difficulty level of this exercise?
Test your Programming skills with w3resource's quiz.