Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

ads

a guest Nov 12th, 2018 86 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. for (int i=0;i<tab5.length;i++) {
  2.             int c=0;
  3.             for (int j=0;j<tab5.length;j++){
  4.        
  5.            
  6.             if (tab5[i][i] == tab5[j][j] || tab5[i][i] == tab5[i][tab5.length-1-j]) c++;
  7.             }
  8.         if (c>=3) {
  9.             System.out.println("Sa trzy takie same liczby w przekatnej");
  10.             break;
  11.         }
  12.         else if (i==tab5.length-1)
  13.             System.out.println("Nie ma trzech takich samych liczb w przekatncyh ");
  14.         }
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. OK, I Understand
 
Top