99 bottles of beer: Difference between revisions

99 Bottles with Algae language
(→‎{{header|Kotlin}}: Updated example see https://github.com/dkandalov/rosettacode-kotlin for details)
(99 Bottles with Algae language)
Line 201:
return 0;
}</lang>
 
=={{header|Algae}}==
<lang algae>
# 99 Bottles of Beer on the Wall
# in Algae
# bottles.A
for (i in 99:1:1) {
if (i != 1) {
printf("%d bottles of beer on the wall\n";i);
printf("%d bottles of beer...\n";i);
printf("you take on down and pass it around...\n");
if ( i == 2) {
printf("%d bottles of beer on the wall\n\n";i-1);
else
printf("%d bottles of beer on the wall\n\n";i-1);
}
else
printf("1 bottle of beer on the wall\n");
printf("1 bottle of beer...\n");
printf("you take on down and pass it around..\n");
printf("no more bottles of beer on the wall!\n\n");
}
}
</lang>
 
=={{header|ALGOL 68}}==
54

edits