Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package aula_25_04;
- public class matriz {
- public static void main(String[]args){
- int m[][]= {{1,2,3}, {4,5,6}, {7,8,9}};
- int i, j;
- for (i=0; i<m.length; i++){
- System.out.printf("%da.linha: ", (i+1));
- for (j=0; j<m[i].length; j++){
- System.out.printf("%d ", m[i][j]);
- }
- System.out.printf("\n");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement