beer.k 395 B

1234567891011121314
  1. # Prints the lyrics to the famous "99 bottles of beer" song
  2. 99>n
  3. (n
  4. 10>s
  5. n+0 n>@ (@>t) (t>s) s<" bottle" n-1 n>a? (a "s">s 0>a?) s<" of beer on the wall" 10>s
  6. n+0 n>@ (@>t) (t>s) s<" bottle" n-1 n>a? (a "s">s 0>a?) s<" of beer"
  7. n-1 10>s<"Take one down and pass it around" 10>s
  8. n+0 n>@ (@>t) (t>s) s<" bottle" n-1 n>a? (a "s">s 0>a?) s<" of beer on the wall" 10>s
  9. n?
  10. )
  11. (s>o)