Javatpoint Logo
Javatpoint Logo

Ruby redo Statement

Ruby redo statement is used to repeat the current iteration of the loop. The redo statement is executed without evaluating the loop's condition.

The redo statement is used inside a loop.

Syntax:

Example:

Output:

Ruby redo statement 1


Ruby retry Statement

Ruby retry statement is used to repeat the whole loop iteration from the start.

The retry statement is used inside a loop.

Syntax:

Next TopicRuby comments





Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA