Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/peter-budo/fizzbuzz
https://github.com/peter-budo/fizzbuzz
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/peter-budo/fizzbuzz
- Owner: peter-budo
- Created: 2011-12-05T16:00:02.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2011-12-05T16:19:13.000Z (about 13 years ago)
- Last Synced: 2023-03-12T09:57:57.721Z (almost 2 years ago)
- Language: Java
- Homepage:
- Size: 89.8 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
Write a program that prints the numbers from 1 to 100. But for multiples of three print "Fizz" instead of the number and for the multiples of five print "Buzz". For numbers which are multiples of both three and five print "FizzBuzz". Do not spend any longer than 30 MINUTES on the test!
Make sure that all the requirements have been met. There are 6 requirements of this task.
1 - Multiples of 3 (Fizz)
2 - Multiples of 5 (Buzz)
3 - Multiples of both 3 and 5 (FizzBuzz)
4 - Numbers that do not match any of the above - Just print the number.
5 - For the numbers 1 to 100 apply the above requirements
6 - Unit testing - (For example: redirect STDOUT so that you can unit test what is being printed.). Create unit tests for the first 4 requirements.