도전
맥주 99 병에 가사를 출력하는 프로그램을 작성, 하지만 "맥주"대신 벽의 병 수가 3의 배수이면 "fizz", 5의 배수이면 "버즈"를 출력하십시오. 3의 배수와 5의 배수 인 경우 "fizzbuzz"벽에있는 병의 수가 3이나 5의 배수가 아닌 경우 평소대로 "맥주"를 출력하십시오.
가사
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.
이것은 code-golf 이므로 각 언어에서 가장 짧은 제출이 이깁니다.