99 bottles of beer: Difference between revisions
Content added Content deleted
(→{{header|J}}: Final line of computation added.) |
(SNUSP) |
||
Line 636: | Line 636: | ||
<python>a, b, c, s = " bottles of beer", " on the wall\n", "Take one down, pass it around\n", str |
<python>a, b, c, s = " bottles of beer", " on the wall\n", "Take one down, pass it around\n", str |
||
for i in [s(x)+a+b+s(x)+a+"\n"+c+s(x-1)+a+b for x in xrange(99, 0, -1)]: print i</python> |
for i in [s(x)+a+b+s(x)+a+"\n"+c+s(x-1)+a+b for x in xrange(99, 0, -1)]: print i</python> |
||
=={{header|SNUSP}}== |
|||
/=!/===========!/==+++++++++# +9 |
|||
| | /=!/=====@/==@@@+@+++++# +48 (itoa) |
|||
| | | | /==!/==@@@@=++++# +32 (space) |
|||
| | | | | \==@@++\!+++++++++++++\!+++++\ |
|||
9 9 '9 9' space 'b' 'o' 't' |
|||
$@/>@/>@/>@/>@/>========@/>============@/>====@/>++++++++++ \n setup |
|||
/====================================loop=====>\!=>\!<<<<<<<< / |
|||
\@\@\>cr.@\< ?\<->+++++++++>->+++++++++\ | | |
|||
! | | \===-========>=>-==BCD==!\< @\< ?/< ?/# no more beer! |
|||
/=|=====|================================/ |
|||
| | \<++t.<<----a.>----k.<++++e.<_.>>++++o.-n.< e.<_.>-d.>+o.>+++w.<-n.<<_.\ |
|||
| | / / |
|||
| | \>---a.>n.<+++d.<_.>>++p.<---a.>>----s.s.<<<_.>>-------i.>+t.<<<_.\ |
|||
| | / / |
|||
| | \>a.>>--r.<++++++o.>+++u.<-n.<+++d.>>>cr.<-T<+O<--B<<<# |
|||
| ! |
|||
\@\<<<_.>>o.-n.<<_.>>>++t.<<+++h.---e.<_.>>>+++w.<<----a.>--l.l.>>CR.<---T<+++O<+B<<<# |
|||
| |
|||
\9.>9.>_.>B.>O.>T.t.<---l.<+++e.>>-s.<<<_.>>+++O.<+f.<_.>----b.+++e.E.>>-R.# |