![]() |
99 beers of bottle challenge
just to have some fun and tried to beat the 99 beer bottle challenge...
visit http://99-bottles-of-beer.net/language-php-1825.html for more information. Code:
<?php |
So what exactly is the challenge? To have your program sing 99 bottles of beer on the wall in the fewest lines of code? If so, try this
PHP Code:
PHP Code:
|
Write it with recursion. That would remove some of those lines, but run about the same speed wise.
|
Quote:
|
Quote:
|
Quote:
|
haha! thanks for the thoughts guys. :)
|
Topic title "99 beers of bottle challenge"—someone's been on the bottles! Is anyone going to write their own script which sings the song?
|
Quote:
|
Quote:
Geez! I mainly focus on PHP, MYSQL, I am looking to get certified in Redhat linux though. And of course all the other side languages that I need to pick up like javascript, jquery, ajax...I'm sure some will take offense to me calling them side languages haha..ok..client side languages...that's better... In any event, how about objective-C? are you interested? I am...I just bought a Mac-mini and I'd like to learn a little iphone programming....maybe Salathe? |
well, any hard-core LAMP devs here?
seriously, i envy allworknoplay for his mac-mini. huhuhu |
Quote:
|
Never done objective C since I don't have a mac or iPhone.
|
Quote:
|
8 Lines
PHP Code:
|
Bravo! Good work, ioan1k :-)
|
Even Shorter...... and gives the correct ending :)
PHP Code:
|
The song should end with "Go to the store and buy some more, 99 bottles of beer on the wall." Full lyrics are available: http://99-bottles-of-beer.net/lyrics.html
|
Quote:
PHP Code:
|
Just passed a little time during lunch. :-$
PHP Code:
|
| All times are GMT. The time now is 08:58 PM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0