- A simple solution to FizzBuzz puzzle using Java
-
Print the numbers from 1 to 100 (optional: enter the desired number) , with the following exceptions:
-
If the number is a multiple of 3, print FIZZ instead of the number.
-
If the number is a multiple of 5, print BUZZ instead of the number.
-
If the number is a multiple of 3 and 5, print FIZZBUZZ instead of the number.
- Tri Nguyen
- Please find me on Linkedin.