RSS/Atom Feed

Programming Limerick

2008-02-16 ignoramus

Ran into a programming limerick today thanks to XKCD. I found this one and had to share.

int factorial(int sum) {
if (sum == 1) return 1;
if (sum != 1)
return product(sum,
factorial(sum - 1)); }