Palindrome finder
public ruby v1 · immutablei = 999j = 999while 1 do a = i * j if a.to_s.reverse == a.to_s then puts "#{i} x #{j} = #{a}" break; elsif i == 100 i = 1000 j -= 1 end i -= 1 puts "#{i} x #{j} = #{a}"endi = 999j = 999while 1 do a = i * j if a.to_s.reverse == a.to_s then puts "#{i} x #{j} = #{a}" break; elsif i == 100 i = 1000 j -= 1 end i -= 1 puts "#{i} x #{j} = #{a}"end