Entry 32248
nx
Submitted by anonymous
on Feb. 1, 2012 at 11:31 p.m.
Language: Ruby. Code size: 92 bytes.
# 1 * X + 2 * X ... N * X def nx n, x return x if n == 1 (n * x) + (nx n - 1, x) end
This snippet took 0.00 seconds to highlight.
Back to the Entry List or Home.