ss = gets.to_iwhile ss > 0 puts gets.to_i*gets.to_i 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!