Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Scanner teclado = new Scanner(System.in);
- double mat[][] = new double[5][5];
- for (int l = 0; l < 5; l++) {
- for (int c = 0; c < 5; c++) {
- System.out.println("Digite um número:");
- mat[l][c] = teclado.nextDouble();
- }
- }
- for (int l = 0; l < 5; l++) {
- for (int c = 0; c < 5; c++) {
- System.out.print(mat[l][c] + ", ");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement