Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

LAB7.

java 11/2/2019 10:39

1 import java.util.Scanner;
2 public class LAB7 {
3 public static void main(String[] args){
4 Scanner lex=new Scanner(System.in); 
5 int mat1[][]=new int [20][20];
6 int mat2[][]=new int [20][20];
7 IMP x=new IMP();
8 System.out.println("ingrese matriz de 2*2: ");
9 for (int i=0;i<2;i++){
10 for (int j=0;j<2;j++){
11 mat1[i][j]=lex.nextInt();
12 }System.out.println ();
13 }System.out.print("Determinante= ");
14 x.det1(mat1);
15 System.out.println("ingrese matriz de 3*3: ");
16 for (int i=0;i<3;i++){
17 for (int j=0;j<3;j++){
18 mat2[i][j]=lex.nextInt();
19 }System.out.println ();
20 }
21 x.det2(mat2);
22 }
23 }
24

Page 1 of 1

You might also like