"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”." To learn more and see clean versions, see: https://wiki.c2.com/?FizzBuzzTest
- C++, 13 lines
- Go, 16 lines
- Java, 15 lines
- JavaScript, 3 lines
- JavaScript, 6 lines but 22 words
- Python2, 10 lines
- Python3, 2 lines
- R, 4 lines
- Rust, 3 lines
- Ruby, 1 lines
- Alphabetically add your addition here to README.md in the format
[<language name>](<file-name>), <number-of-lines> lines
. Count the number of lines after the file is formatted by your editor to prevent unreadable code. - Add a file to the root of the repo in the form of:
<language-name>.<file-extension>
that satisfies the rules above.
Try to write a detailed commit message.
If possible make sure you end your file with a newline at the end and are using LF as opposed to CRLF Line sequences.
Feel free to improve on existing solutions if you can do better :)