multiple gets entry (ruby)
// 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