99 bottles of beer: Difference between revisions

no edit summary
(→‎{{header|Ring}}: Add rockstar solution)
No edit summary
Line 1,718:
}
</lang>
 
=={{header|Clio}}==
<lang clio>fn bottle n:
n -> if = 0: 'no more bottles'
elif = 1: n + ' bottle'
else: n + ' bottles'
 
99..0 -> * (@eager) fn i:
i -> bottle -> print (transform i: sentence-case) 'of beer on the wall,' @ 'of beer.'
if i = 0:
'Go to the store, buy some more, 99 bottles of beer on the wall.' -> print
else:
i - 1 -> bottle -> print 'Take one down and pass it around,' @ 'of beer on the wall.\n'</lang>
 
=={{header|Chapel}}==
Anonymous user