All pastes #509374 Raw Edit

Palindrome finder

public ruby v1 · immutable
·published 2007-05-25 12:47 UTC
rendered paste body
i = 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