https://github.com/andresmweber/ironhack-test
FizzBuzz derived code test.
https://github.com/andresmweber/ironhack-test
bootcamp buzz challenge duck fizzbuzz ironhack javascript test
Last synced: 2 months ago
JSON representation
FizzBuzz derived code test.
- Host: GitHub
- URL: https://github.com/andresmweber/ironhack-test
- Owner: AndresMWeber
- Created: 2019-07-31T04:01:54.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2022-02-13T19:00:26.000Z (about 3 years ago)
- Last Synced: 2025-01-16T11:26:14.967Z (4 months ago)
- Topics: bootcamp, buzz, challenge, duck, fizzbuzz, ironhack, javascript, test
- Language: JavaScript
- Homepage:
- Size: 46.9 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Duck Duck Goose (FizzBuzz)
Duck Duck Goose is a classroom game meant for a large group of people. ☺\
You may remember this from kindergarten, but we’re going to change the rules a bit (a lot) here.\
The first person would say “1”.\
The second would say “2”.\
All the way to the last person.\
Sounds easy, right? Well, let’s make it a little harder.\
If the person has a number that is a multiple of 3, they will say “Duck”.\
If the person has a number that is a multiple of 5, they will say “Duck duck”.\
If the person has a number that is a multiple of both 3 and 5, they will say “Duck duck goose!”.\
If you say the wrong word, or the wrong number, you’re out!***Step 1***
_____________
Print the numbers from 1 to 75, each number on its own line\:
>1\
2\
3\
4\
5\
6\
7\
8\
9\
10\
11\
12\
13\
14\
...***Step 2***
_____________
If the number is a multiple of 3, print the word “Duck”. Otherwise, print the number:\
>1\
2\
Duck\
4\
5\
Duck\
7\
8\
Duck\
10\
11\
Duck\
13\
14\
...***Step 3***
_____________
If the number is a multiple of 5, print the word “Duck duck”:\
>1\
2\
Duck\
4\
Duck duck\
Duck\
7\
8\
Duck\
Duck duck\
11\
Duck\
13\
14\
...***Step 4***
_____________
If the number is a multiple of both 3 and 5, print “Duck duck goose!”:\
>1\
2\
Duck\
4\
Duck duck\
Duck\
7\
8\
Duck\
Duck duck\
11\
Duck\
13\
14\
Duck duck goose!\
...\
73\
74\
Duck duck goose!