for (int j = -1; j < 2; j++) for (int i = -1; i < 2; i++) if (i==0 & j==0) break; In this case, the program will be released from both cycles or only from internal?
UPDATED The desired result is achieved only with the use of brackets:
for (int j = -1; j < 2; j++){ for (int i = -1; i < 2; i++){ if (i==0 & j==0) break; } if (i==0 & j==0) break; }