In the original game of Fizz Buzz, you count from 1 to a given number (let’s say 100). For each number if it’s not divisible by 3 or 5, you simply say the number. If it’s divisible by 3, instead of the number you say “fizz”. If it’s divisible by 5, you say “buzz”. And finally if it’s divisible by both 3 and 5, you say “fizz buzz”. So, counting from one to fifteen, you’d say: “One, two, fizz, four, buzz, fizz, seven, eight, fizz, buzz, eleven, fizz, thirteen, fourteen, fizz buzz”.
febby / fizzbuzz Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0