Lower Triangular Matrix In Java ISC
Program to input a 2-D square matrix and check whether it is a Lower Triangular Matrix or not. import java.util.*; class LowerTriangularMatrix { public static void main() { Scanner sc=new Scanner(System.in); System.out.print("Enter the size of the matrix : "); int m=sc.nextInt(); int A[][]=new int[m][m]; for(int i=0;i<m;i++) { for(int j=0;j<m;j++) { System.out.print("Enter an element : "); A[i][j]=sc.nextInt(); } } System.out.println("The Matrix is : "); ...