Skip to main content
Mod Removes Wiki by Dennis
deleted 5 characters in body
Source Link
user11
user11

Javascript (288285)

This assumes there is a function called print, to output a string.

b=' of beer on the wall';n=100;while(--nn>1)if(n>1)print(n+" bottles"+b+', '+n+" bottles of beer.\nTake one down and pass it around, "+(n-1)+' bottle'+(n-1>1?'s':'')+b+'.\n\n');else print;print("1 bottle"+b+", 1 bottle of beer.\nGo to the store and buy some more, 99 bottles of beer on the wall.") 

Javascript (288)

This assumes there is a function called print, to output a string.

b=' of beer on the wall';n=100;while(--n)if(n>1)print(n+" bottles"+b+', '+n+" bottles of beer.\nTake one down and pass it around, "+(n-1)+' bottle'+(n-1>1?'s':'')+b+'.\n\n');else print("1 bottle"+b+", 1 bottle of beer.\nGo to the store and buy some more, 99 bottles of beer on the wall.") 

Javascript (285)

This assumes there is a function called print, to output a string.

b=' of beer on the wall';n=100;while(--n>1)if(n>1)print(n+" bottles"+b+', '+n+" bottles of beer.\nTake one down and pass it around, "+(n-1)+' bottle'+(n-1>1?'s':'')+b+'.\n\n');print("1 bottle"+b+", 1 bottle of beer.\nGo to the store and buy some more, 99 bottles of beer on the wall.") 
deleted 10 characters in body; deleted 15 characters in body
Source Link
user11
user11

Javascript (311288)

This assumes there is a function called print, to output a string.

n=100;whileb=' of beer on the wall';n=100;while(--n)if(n>1)print(n+" bottles of beer on the wallbottles"+b+', "+n+"'+n+" bottles of beer.\nTake one down and pass it around, "+(n-1)+' bottle'+(n-1>1?'s':'')+' of beer on the wall+b+'.\n\n');else print("1 bottle of beer on the wallbottle"+b+", 1 bottle of beer.\nGo to the store and buy some more, 99 bottles of beer on the wall.") 

Javascript (311)

This assumes there is a function called print, to output a string.

n=100;while(--n)if(n>1)print(n+" bottles of beer on the wall, "+n+" bottles of beer.\nTake one down and pass it around, "+(n-1)+' bottle'+(n-1>1?'s':'')+' of beer on the wall.\n\n');else print("1 bottle of beer on the wall, 1 bottle of beer.\nGo to the store and buy some more, 99 bottles of beer on the wall.") 

Javascript (288)

This assumes there is a function called print, to output a string.

b=' of beer on the wall';n=100;while(--n)if(n>1)print(n+" bottles"+b+', '+n+" bottles of beer.\nTake one down and pass it around, "+(n-1)+' bottle'+(n-1>1?'s':'')+b+'.\n\n');else print("1 bottle"+b+", 1 bottle of beer.\nGo to the store and buy some more, 99 bottles of beer on the wall.") 
Source Link
user11
user11

Javascript (311)

This assumes there is a function called print, to output a string.

n=100;while(--n)if(n>1)print(n+" bottles of beer on the wall, "+n+" bottles of beer.\nTake one down and pass it around, "+(n-1)+' bottle'+(n-1>1?'s':'')+' of beer on the wall.\n\n');else print("1 bottle of beer on the wall, 1 bottle of beer.\nGo to the store and buy some more, 99 bottles of beer on the wall.")