/FizzBuzz

FizzBuzz assignment implementation

Primary LanguageJavaGNU General Public License v3.0GPL-3.0

Build Status codecov

FizzBuzz

'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”."

This project contains the code to solve the previous programming assignment

Dependencies

Java SDK 1.8 or later and Maven 3.6

Execution

On Linux

mvn clean install
java -jar target/FizzBuzz-1.0-SNAPSHOT.jar

On Docker

docker build -t fizzbuzz:1.0 .
docker run --rm -it fizzbuzz:1.0

Test

mvn test