55
1
Challenge
Write a program that outputs the lyrics to 99 Bottles of Beer, but instead of "beer", output "fizz" if the number of bottles on the wall is a multiple of 3, "buzz" if it is a multiple of 5, and "fizzbuzz" if it is a multiple of 3 and a multiple of 5. If the number of bottles on the wall is not a multiple of 3 or 5, just output "beer" as usual.
Lyrics
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.
This is code-golf, so the shortest submission in each language wins.
31I have 95 bottles of fizz. I take one away. Now I have 94 bottles of beer. Logic. – Okx – 2017-05-12T19:10:39.253
2Can I have a bottle of fizzbeer? – Stephen – 2017-05-12T19:15:50.657
1Is there supposed to be a newline after the 3rd bottle? – user41805 – 2017-05-12T19:29:45.753
Nope, my bad. Fixing now. – musicman523 – 2017-05-12T19:32:17.630
2Is a newline required between the two lines? Before Kritixi Lithos's edit there were none and now there are. – dzaima – 2017-05-12T19:36:34.297
11@Okx Well, beer is fizzy and gives you a buzz... – Draco18s no longer trusts SE – 2017-05-12T22:09:48.377
@dzaima There should be newlines between each verse, but not within the verses. Trailing newline is OK but not required. – musicman523 – 2017-05-13T01:01:58.377
Should it be infinite? – MD XF – 2017-05-13T21:37:53.900
@MDXF The last line posted should be where it stops – musicman523 – 2017-05-14T00:26:45.373
What is a "fizz"? ;) – None – 2017-05-15T09:21:40.357
I like the "just output "beer" as usual." :). – 6infinity8 – 2017-06-08T22:20:40.727
Related: 1, 2, Fizz, 4, Buzz
– sergiol – 2017-06-25T11:41:12.713Related: “99 Bottles of Beer”
– sergiol – 2017-06-25T11:43:16.327@sergiol of course they're related, they inspired the challenge! – caird coinheringaahing – 2017-06-26T14:06:44.140