99 Bottles of Beer/Lisp: Difference between revisions

Content added Content deleted
(moving code from main task-page to sub-page / Wart)
Line 119: Line 119:
(prinl (bottles (dec 'N)) " on the wall.")
(prinl (bottles (dec 'N)) " on the wall.")
(prinl) )</lang>
(prinl) )</lang>

=={{header|Wart}}==
<lang python>def (beer n)
when (n > 0)
prn n " bottles of beer on the wall"
prn n " bottles of beer"
prn "take one down, pass it around"
prn n-1 " bottles of beer on the wall"
prn ""
beer n-1</lang>