asdsa

Ruby code posted by asda
created at 13 Oct 09:23

Edit | Back
1
2
3
4
5
6
7
8
9
E=Math.exp(1)
def intk(k)
  return k<1 ? 1-E**(-1) : k*intk(k-1)-E**(-1)
end

25.times  { |i|
  z=intk(i)
  puts "#{i}: #{z}"
}
132 Bytes in 2 ms with coderay