package matrix;
import java.util.Scanner;
public class Matrix {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int baris, kolom, matrix = 4;
char mulai = '0';
System.out.println("+----------------------+");
System.out.println("|---- Matrix 4 x 4 ----|");
System.out.println("+----------------------+");
System.out.println("");
int[][] bil = new int[4][4];
for (kolom = 0; kolom < matrix; kolom++)
{
for (baris = 0; baris < matrix; baris++)
{
System.out.printf(" Bilangan %d, %d = ", kolom, baris);
bil[baris][kolom] = sc.nextInt();
}
}
System.out.println("");
System.out.println("");
System.out.println("Matrix 4 x 4 = ");
System.out.println("");
for (kolom = 0; kolom < matrix; kolom++)
{
***********
}
************
}
}
Jika ingin mendownload project nya langsung klik download di bawah ini.