I solved table of multiplication from 1 -10 program  like follows:

x = 1
while x <= 10
   puts " #{x} * 1 = #{x}" " " " #{x} * 2 = #{x*2}" " " " #{x} * 3 =
#{x*3}"......" #{x} * 1 = #{x*10}"
   x = x + 1
   end

From above program I am getting output improper way.

My question is how can I get output in proper way.

Thank you.

-- 
Posted via http://www.ruby-forum.com/.