The condition in inner loop is not correct
Man, your inner loop condition j<i is not correct. Because first time, both j and i are 2 making the condition (2<2) false, so it will come out of loop with nothing inside the loop being executed. It will go to System.out.println(i) directly and execute.
Last edited by vickyanu; March 27th, 2013 at 01:18 AM..
|