[BNM] [OT] Java rap
matt stone
stone.matthew at gmail.com
Fri Jul 25 15:42:26 BST 2008
2008/7/25 Alex Farran <alex at alexfarran.com>:
> No rap, but here's a factorial function in limerick form.
>
> int factorial(int sum) {
> if (sum == 1) return 1;
> if (sum != 1)
> return product(sum,
> factorial(sum - 1)); }
>
How about a nice friday afternoon singalong counting down to pub time
for ($bottlesOfBeerOnTheWall = 99; $bottlesOfBeerOnTheWall >0;
$bottlesOfBeerOnTheWall--) {
echo "You take one down, and pass it around";
}
Cheers
Matt
More information about the BNMlist
mailing list. Powered by Wessex Networks