Answers for "how to write a while loop in ruby"

-1

rails loop

while $i < $num  do
   puts("Inside the loop i = #$i" )
   $i +=1
end
Posted by: Guest on April-06-2020

Code answers related to "how to write a while loop in ruby"

Browse Popular Code Answers by Language