Défi
Ecrivez un programme qui affiche les paroles de 99 Bouteilles de bière, mais au lieu de "beer", indiquez "fizz" si le nombre de bouteilles accrochées au mur est un multiple de 3, "buzz" s’il s’agit d’un multiple de 5 et "fizzbuzz" s'il s'agit d'un multiple de 3 et d'un multiple de 5. Si le nombre de bouteilles accrochées au mur n'est pas un multiple de 3 ou 5, indiquez simplement "bière" comme d'habitude.
paroles de chanson
99 bottles of fizz on the wall, 99 bottles of fizz.
Take one down and pass it around, 98 bottles of beer on the wall.
98 bottles of beer on the wall, 98 bottles of beer.
Take one down and pass it around, 97 bottles of beer on the wall.
97 bottles of beer on the wall, 97 bottles of beer.
Take one down and pass it around, 96 bottles of fizz on the wall.
96 bottles of fizz on the wall, 96 bottles of fizz.
Take one down and pass it around, 95 bottles of buzz on the wall.
95 bottles of buzz on the wall, 95 bottles of buzz.
Take one down and pass it around, 94 bottles of beer on the wall.
....
3 bottles of fizz on the wall, 3 bottles of fizz.
Take one down and pass it around, 2 bottles of beer on the wall.
2 bottles of beer on the wall, 2 bottles of beer.
Take one down and pass it around, 1 bottle of beer on the wall.
1 bottle of beer on the wall, 1 bottle of beer.
Go to the store and buy some more, 99 bottles of fizz on the wall.
C'est du code-golf , donc la soumission la plus courte dans chaque langue gagne.