n=gets.to_i1.upto(n) {|x|puts "#{n} X #{x} = #{n*x}"}gets
5
5 X 1 = 5 5 X 2 = 10 5 X 3 = 15 5 X 4 = 20 5 X 5 = 25
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!