The difference between continue and break

The difference between continue and break.

continue ends the current loop, and the following loop continues;

break ends the current loop, and the following ones are not executed.

Guess you like

Origin blog.csdn.net/qq_43207709/article/details/112464846