break; statement helps in coming out of the current loop Further in case of nested loop it gets you out of the innermost loop.