Javatpoint Logo
Javatpoint Logo

Ruby Until Loop

The Ruby until loop runs until the given condition evaluates to true. It exits the loop when condition becomes true. It is just opposite of the while loop which runs until the given condition evaluates to false.

The until loop allows you to write code which is more readable and logical.

Syntax:

Example:

Output:

Ruby until loop 1






Youtube For Videos Join Our Youtube Channel: Join Now

Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA