ss = gets.to_iwhile ss > 0 x = gets.to_i y = gets.to_i puts x*y ss -= 1end
5 4 2 123 43 324 342 0 12 9999 12345
492 0 0 0 0
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!