?

Log in

No account? Create an account

Previous Entry | Next Entry

hahahaha

You are... Haskell!
module Main where

                   main = song 99

                   song n =
                           bob n ++ " on the wall,\n" ++
                           bob n ++ ".\n" ++
                           "Take one down, pass it around.\n"  ++
                           if n == 1
                           then
                                   "No more bottles of beer on the wall.\n"
                           else
                                   bob (n-1) ++ " on the wall.\n"
                                   ++ song (n-1)

                   bob n =
                           show n ++ bottle ++ " of beer"
                           where
                           bottle = " bottle" ++ if n == 1 then "" else "s"

What programming language are you?

Comments

( 2 comments — Leave a comment )
tiny37
May. 6th, 2004 07:46 pm (UTC)
That's the same one I got when I did it.
natalie516
May. 7th, 2004 06:26 am (UTC)
hehe I know :)
( 2 comments — Leave a comment )

Latest Month

April 2011
S M T W T F S
     12
3456789
10111213141516
17181920212223
24252627282930

Page Summary

Powered by LiveJournal.com
Designed by Lizzy Enger