https://github.com/trinitronx/rust-fizzbuzz
Rust `FizzBuzz` Code Golf in 125 chars
https://github.com/trinitronx/rust-fizzbuzz
code-golf rust
Last synced: 7 months ago
JSON representation
Rust `FizzBuzz` Code Golf in 125 chars
- Host: GitHub
- URL: https://github.com/trinitronx/rust-fizzbuzz
- Owner: trinitronx
- Created: 2023-09-15T00:30:22.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-09-15T10:19:45.000Z (about 2 years ago)
- Last Synced: 2025-01-10T07:46:57.917Z (9 months ago)
- Topics: code-golf, rust
- Language: Rust
- Homepage: https://trinitronx.github.io/rust-fizzbuzz/
- Size: 1.06 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# FizzBuzz Code Golf
Consider the following problem:
Write a short program that prints each number from 1 to 100 on a new line.
- For each multiple of 3, print "`Fizz`" instead of the number.
- For each multiple of 5, print "`Buzz`" instead of the number.
- For numbers which are multiples of both 3 and 5, print "`FizzBuzz`" instead of the number.
- Write a solution (or reduce an existing one) so it has as few characters as possible.Scoring
- Your score is: `200 - number of characters in your source code) / 100`
Source: [HackerRank: FizzBuzz][1]
[1]: https://www.hackerrank.com/challenges/fizzbuzz/problem