Explain while loop in ruby.
Answer / 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 |
How would you create getter and setter methods in ruby?
what is the difference between put and putc statement?
what is the purpose of the rakefile available in the demo directory in ruby?
Tell me what is the difference between ruby 1.9 and ruby 2.0?
What are the different environment variables present in the ruby?
What are freezing string in Ruby?
Explain raise statement in Ruby?
Are numeric objects mutable in ruby?
Tell me what are blocks and procs?
Explain the difference between nil and false in ruby?
What is the scope of a local variable in ruby?
In Ruby, it explains about the defined operator?