/fizzbuzz

Implement a FizzBuzz in Java

Primary LanguageJava

FizzBuzz

Print the natural numbers from 1 to 100, one in each line, but if the number is divisible by 3 print "Fizz" (without the quotes) instead and if it is divisible by 5 print "Buzz" instead and if it is divisible by both 3 and 5, print "FizzBuzz".

Open in Gitpod Run on Repl.it