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
Mausam Singh
Product Manager | Ex-SDE at Meesho | You need to accept the fact that you’re not the best and have all the will to strive to be bet
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