Advertisement
Guest User

Untitled

a guest
Apr 25th, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. package aula_25_04;
  2.  
  3. public class matriz {
  4. public static void main(String[]args){
  5. int m[][]= {{1,2,3}, {4,5,6}, {7,8,9}};
  6. int i, j;
  7. for (i=0; i<m.length; i++){
  8. System.out.printf("%da.linha: ", (i+1));
  9. for (j=0; j<m[i].length; j++){
  10. System.out.printf("%d ", m[i][j]);
  11. }
  12. System.out.printf("\n");
  13. }
  14. }
  15.  
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement