99 bottles of beer: Difference between revisions

m
No edit summary
Line 3,755:
 
=={{header|Ecstasy}}==
<syntaxhighlight lang="java">module Bottles {
void run() {
@Inject Console console;
void run()
{
function String(Int) num = i -> i==0 ? "No" : i.toString();
function String(Int) bottles = i -> i==1 ? "bottle" : "bottles";
 
for@Inject (IntConsole remain : 99..1)console;
for (Int remain : 99..1) {
console.print($|{num(remain)} {bottles(remain)} of beer on the wall
|{num(remain)} {bottles(remain)} of beer
162

edits