So I heard about a exercise about the song "99 Bottles of Beer", so I tired it and this is what I came up with....
for (int i = 99; i >= 1; i--){ Console.WriteLine(" '" + i + "' bottles of beer on the wall, '" + i + "' bottles of beer.");
i--;
Console.WriteLine(" Take one done and pass it around '" + i + "' bottles of beer on the wall.");i++;
if (i == 1){
Console.WriteLine(" Thanks for playing but I'm out!!!");break;
}
}
You know of any other ways to programmatically execute this song?
VulpesPosted Nov 18, 2014, 8:20 AM
http://www.99-bottles-of-beer.net/z.html
I think ZOMBIE is my favourite :)
MarcPosted Nov 18, 2014, 8:58 AM
VulpesPosted Nov 18, 2014, 8:39 AM
http://www.dangermouse.net/esoteric/zombie.html
AFAIK, no one has written a compiler for it.
In my time, I've used many languages starting with ALGOL and FORTRAN.
The only ones I use much nowadays are C#, C, C++, Java and VB.
MarcPosted Nov 18, 2014, 8:34 AM
MarcPosted Nov 18, 2014, 8:28 AM