Language Sleep
| Date: | 01/23/09 |
| Author: | Chris Adamson |
| URL: | http://www.linkedin.com/in/chrisadamson |
| Comments: | 0 |
| Info: | http://sleep.dashnine.org/ |
| Score: |
# 99Bottles.sl
for($total = 99; $total > 0; $total--) {
$beer = "$total bottle" . iff($total == 1, "", "s");
println("$beer of beer on the wall, $beer of beer.");
if ($total == 0) {
println("Take one down and pass it around, no more bottles of beer
on the wall");
} else {
$beer = "$total bottle" . iff($total == 1, "", "s");
println("Take one down and pass it around, $beer of beer on the wall.");
}
println();
}
println("No more bottles of beer on the wall, no more bottles of beer.");
println("Go to the store and buy some more, 99 bottles of beer on the wall.");
Download Source | Write Comment
Download Source | Write Comment
Add Comment
Please provide a value for the fields Name,
Comment and Security Code.
This is a gravatar-friendly website.
E-mail addresses will never be shown.
Enter your e-mail address to use your gravatar.
Please don't post large portions of code here! Use the form to submit new examples or updates instead!
Comments