The break statement is used to terminate the for or while loop.
We should use break statement along with the if statement.
Given a list of numbers, print all numbers until we hit the number zero.
Continue statement is used in looping to skip some statements.
We should use continue statement along with the if statement.
When continue statement encounters, the execution will go to the starting of the loop.
The statements below continue statement will not be executed if the given condition becomes true.
Given a list of numbers, print all numbers except the number 0.