3 n
.to_s
== n
.to_s
.reverse
9 directions
= [:left, :back, :down, :forward]
13 puts
"#{a}/#{b}, product = #{a*b}, dir = #{direction}"
15 while not is_palindrome
?(a
* b
) do
38 # puts "#{a}/#{b}, product = #{a*b}, dir = #{direction}"
42 puts
"Largest palindrome is #{a*b}, the product of #{a} and #{b}"