"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, 104 bytes
- C++, 231 bytes
- Dart, 124 bytes
- Elm, 297 bytes
- Go, 140 bytes
- Haskell, 113 bytes
- Java, 106 bytes
- JavaScript, 64 bytes
- Perl6, 54 bytes
- PHP, 68 bytes
- Python2, 59 bytes
- Python3, 61 bytes
- R,110 bytes
- Ruby, 69 bytes
- Rust, 115 bytes
- Scheme, 433 bytes
- Swift, 578 bytes
- Alphabetically add your addition here to README.md in the format
[<language name>](<file-name>), <number-of-bytes> bytes
. GitHub tells you the number of bytes for any file. - 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 :)