Discuss different forms of exit statement
Answers
Answered by
0
The exit statements helps to come out of a loop.There are basically two forms of an exit statement.
1)unconditional exit
2)conditional exit
The unconditional exit statement exits the current loop immediately
the conditional exit statement checks whether the condition mathes the statement if true then it continue the process.
In unconditional the body of loop is excuted only once.
In conditional the body of loop is executed more than one.
Answered by
0
The exit statement exists a loop and transfers the control and carries out at the end of the loop.
In fact, it has distinct loops that have been taken with two forms.
It is nothing but unconditional exit and conditional exit.
With either form, it is accessing with your name and the loop to be exited.
Similar questions