If you have to understand the break, return and continue statement in a loop then break used to come out of loop/statements, continue used to left the statement after it and continue next iteration and return used to come out of functions. It can be either main() or user defined function. You can learn more about functions. Refer This