Kotlin

Kotlin Continue Statement Example1 min read

As like every programming language in Kotlin continue expression skips the current iteration of the enclosing loop, and the control of the program jumps to the end of the loop body.

In the above program program if the value of i is greater than three and less than five continue expression is called and control returns back to loop body.




Continue statment is used to stop the execution of the body and control goes back to the next iteration.

Kotlin Code:

Output:

Leave a Comment