ss = gets.to_iwhile ss > 0 q = 1 $stdin.readline.split.each {|n| q *= n.to_i puts q ss -= 1end
5 4 2 123 43 324 342 0 12 9999 12345
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!