Ruby has basic loop structures. You will find it very easy to understand them.
The while-end control structure is executed until the condition is true:
while <condition> <statements> end
The statements are executed until the condition is false.
Ruby has basic loop structures. You will find it very easy to understand them.
The while-end control structure is executed until the condition is true:
while <condition> <statements> end
The statements are executed until the condition is false.