Untitled
raw download clone
TEXT
views 33
,
size 429 b
public void wypisz(int n) {
        for (int i = 0; i < n; i++) {
            System.out.println();
            for (int j = 0; j < n; j++) {
                if(tab[i][j] == 1)
                System.out.print(" " + tab[i][j] + " ");
                if(tab[i][j] != 1){
                    tab[i][j] = 0;
                    System.out.print(" " + tab[i][j] + " ");
                }
            }
        }
    }
close fullscreen
Login or Register to edit or fork this paste. It's free.