Guest User

Untitled

a guest
May 31st, 2010
231
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     public static void devClub(int l, PrintStream out) {
  2.         int i = 1, j = -i, nr = '\n';
  3.        
  4.         while(i <= l) {
  5.             if(j >= 0) out.print((j+1) * ((i%2 == 0 && j < i-1) || (i%2 != 0 && j > 0) ? -1 : 1));
  6.             if((j += i % 2 == 0 ? -1 : 1) < 0 || j == i) out.print((char)(--nr + i++));
  7.         }
  8.        
  9.     }
RAW Paste Data