Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/iriw/fizzbuzz
FuzzBuzz
https://github.com/iriw/fizzbuzz
Last synced: about 2 months ago
JSON representation
FuzzBuzz
- Host: GitHub
- URL: https://github.com/iriw/fizzbuzz
- Owner: IriW
- Created: 2021-09-13T08:18:33.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-09-13T08:20:00.000Z (over 3 years ago)
- Last Synced: 2024-11-19T12:18:31.161Z (2 months ago)
- Language: Python
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## FizzBuzz
# Instructions
You are going to write a program that automatically prints the solution to the FizzBuzz game.
> `Your program should print each number from 1 to 100 in turn.`
> `When the number is divisible by 3 then instead of printing the number it should print "Fizz".`
> `When the number is divisible by 5, then instead of printing the number it should print "Buzz".`
> `And if the number is divisible by both 3 and 5 e.g. 15 then instead of the number it should print "FizzBuzz"`
e.g. it might start off like this:
```
`1
2
Fizz
4
Buzz
Fizz
7
8
Fizz
Buzz
11
Fizz
13
14
FizzBuzz`
````.... etc.`
# Hint
1. Remember your answer should start from 1 and go up to and including 100.
2. Each number/text should be printed on a separate line.
# Solution
[https://repl.it/@appbrewery/day-5-4-solution](https://repl.it/@appbrewery/day-5-4-solution)
Alternatively: [https://en.wikipedia.org/wiki/Fizz_buzz](https://en.wikipedia.org/wiki/Fizz_buzz)