Programming Limerick
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)); }
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)); }