Anonymous user
99 bottles of beer: Difference between revisions
no edit summary
(added ocaml) |
No edit summary |
||
Line 446:
(format t "~a bottles of beer on the wall~%" (- x 1))
(if (> (- x 1) 0)
and then just call
Line 797:
import javax.swing.JTextArea;
public class Beer extends JFrame implements ActionListener{
}
}
--x;
}
}
}
}</java>
Line 866:
} reverse (1..99);
</perl>
=={{header|Pop11}}==
<pre>
define bootles(n);
while n > 0 do
printf(n, '%p bottles of beer on the wall\n');
printf(n, '%p bottles of beer\n');
printf('Take one down, pass it around\n');
n - 1 -> n;
printf(n, '%p bottles of beer on the wall\n');
endwhile;
enddefine;
bootles(99);
</pre>
=={{header|Python}}==
|