a = 1
b = 1
while a <= 9 do
      while b<=9 do
               puts "#{a}*#{b}"
                case b
                     when 9
                             b = 1
                     else
                             b = b+1
               end
       end
a = a+1
end