SHARE
TWEET

ads




Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- for (int i=0;i<tab5.length;i++) {
- int c=0;
- for (int j=0;j<tab5.length;j++){
- if (tab5[i][i] == tab5[j][j] || tab5[i][i] == tab5[i][tab5.length-1-j]) c++;
- }
- if (c>=3) {
- System.out.println("Sa trzy takie same liczby w przekatnej");
- break;
- }
- else if (i==tab5.length-1)
- System.out.println("Nie ma trzech takich samych liczb w przekatncyh ");
- }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy.