dgraciac / fizzbuzz-kata-java

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

Sample output:

  1. 1
  2. 2
  3. Fizz
  4. 4
  5. Buzz
  6. Fizz
  7. 7
  8. 8
  9. Fizz
  10. Buzz
  11. 11
  12. Fizz
  13. 13
  14. 14
  15. FizzBuzz
  16. 16 17
  17. Fizz
  18. 19
  19. Buzz
  20. ...
  21. up to 100

About


Languages

Language:Java 100.0%