Skip to content

Instantly share code, notes, and snippets.

@Ilyes-Hammadi-Ahmed
Created March 4, 2015 22:39
Show Gist options
  • Select an option

  • Save Ilyes-Hammadi-Ahmed/c27e634fb8f5a68e6003 to your computer and use it in GitHub Desktop.

Select an option

Save Ilyes-Hammadi-Ahmed/c27e634fb8f5a68e6003 to your computer and use it in GitHub Desktop.
package com.company;
public class Main {
public static void main(String[] args) {
// write your code here
}
public static void afficheMatrice(int[][] matrice){
for (int i = 0; i < matrice.length; i++) {
// affichage d'une ligne
for (int j = 0; j < matrice[i].length; j++) {
System.out.println(matrice[i][j]);
}
// retour a la ligne
System.out.println();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment