This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
for x =1, for j = 0, print 1 and then continue to j=1, print 1, but j= 1 , break the inner loop, continue the outer loop.Output so far : 1 1
for x = 3, for j =0 , print 3, continue to j =1, print 3, break inner loop, continue outer loop. Output so far 1 1 3 3
for x = 5, for j = 0, continue inner loop.for x =5, for j =1, continue inner loop. For j =2 , continue inner loop.
for x=7, for j =0 , continue inner loop. For x = 7, for j=1, continue inner loop. For j =2 , continue inner loop.
for y=9, for j=0, print 9, continue inner loop. For y =9, j=1, print 9 , break inner loop and continue outer loop. But the outer loop comes to the end.
Output 1 1 3 3 9 9