In this language, there are three types of loop control statements namely next, redo, and last.
1. Next statement – It is similar to the continue statement in C language and helps to move to the next element of an array skipping all the elements in between.
2. Redo statement – It helps to restart the current loop without considering the control statement.
3. Last statement – It functions similar to that break statement in C language. It helps to exit the loop soon after using the statement.
Posted Date:- 2021-09-05 20:50:53