Multiple Gets Entry (ruby)
Join the DZone community and get the full member experience.Join For Free
// This code isn't mine // I found this code at http://groups.google.com/group/malaysia-rb/browse_thread/thread/4e69834b49df055b
puts 'enter' names =  i =0 while names[i-1] != 'end' names.push gets.chomp i = i+1 end i=i-1 names.each do |count| if i != 0 puts count end i=i-1 end
Opinions expressed by DZone contributors are their own.