Answer Posted / Anish Kumar
"The while loop in Ruby repeatedly executes a block of code as long as the specified condition is true. The syntax for a while loop is: while (condition) do n # code blockn end. The loop will stop when the condition becomes false."
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers