Project

General

Profile

Bug #2436 » a.rb

a.rb use method , b.rb use lambda - ntys (ding ding), 12/04/2009 07:56 PM

 
#This program works well


def f(x)
return 1 if x<=1
return f(x-1)*x
end

puts f(1000)

END{
puts 'Now Exiting'
}
(1-1/2)