What is the purpose of ‘break’ statement?
The ‘break’ statement can be used to terminate a repeated structure (loops) such as ‘while’, do-while ‘and’ ‘for’ and multi-branching statements like ‘switch’.