 ### FizzBuzz

The FizzFizz buzz is a group word game for children to teach them about division. Players take turns to count incrementally, replacing any number divisible by three with the word "fizz", and any number divisible by five with the word "buzz".

Players generally sit in a circle. The player designated to go first says the number "1", and each player thenceforth counts one number in turn. However, any number divisible by three is replaced by the word fizz and any divisible by five by the word buzz. Numbers divisible by both become fizz buzz. A player who hesitates or makes a mistake is eliminated from the game.

For example, a typical round of fizz buzz would start as follows:

1, 2, Fizz, 4, Buzz, Fizz, 7, 8, Fizz, Buzz, 11, Fizz, 13, 14, Fizz Buzz, 16, 17, Fizz, 19, Buzz, Fizz, 22, 23, Fizz, Buzz, 26, Fizz, 28, 29, Fizz Buzz, 31, 32, Fizz, 34, Buzz, Fizz, ...

#### PHP: from 0 to 100

Here is a simple iterative cycle with FizzBuzz results from 0 to 100

`for (\$i = 1; \$i <= 100; \$i++) {    \$output = '';    if (\$i % 3 == 0) {        \$output .= 'Fizz';    }    if (\$i % 5 == 0) {        \$output .= 'Buzz';    }    if (!\$output) {        \$output = \$i;    }    echo \$output . "\n";}`

#### PHP: from 0 to 100

Here is a simple iterative cycle with FizzBuzz results from 0 to 100

`for (\$i = 1; \$i <= 100; \$i++) {    \$output = '';    if (\$i % 3 == 0) {        \$output .= 'Fizz';    }    if (\$i % 5 == 0) {        \$output .= 'Buzz';    }    if (!\$output) {        \$output = \$i;    }    echo \$output . "\n";}`

#### Python: simple elif sequence

`for num in range(1, 25):    if num % 3 == 0 and num % 5 == 0:        print('FizzBuzz')    elif num % 3 == 0:        print('Fizz')    elif num % 5 == 0:        print('Buzz')    else:        print(num)`

#### Java OOP solution::

`public class FizzBuzz {    public static void main(String[] args) {        for (int i = 1; i <= 100; i++) {            if (i % 15 == 0) {                System.out.println("FizzBuzz");            } else if (i % 3 == 0) {                System.out.println("Fizz");            } else if (i % 5 == 0) {                System.out.println("Buzz");            } else {                System.out.println(String.valueOf(i));            }        }    }}`

### Javascript is pretty imperative

`for (let i = 1; i <= 100; i++) {  if (i % 3 === 0 && i % 5 === 0) {    console.log('FizzBuzz');  } else if (i % 3 === 0) {    console.log('Fizz');  } else if (i % 5 === 0) {    console.log('Buzz');  } else {    console.log(i);  }}`