This is a toy project to practice Zig dependency fetching. The project implements the classic FizzBuzz problem and includes a simple test.
src/fizzbuzz.zig: Contains the implementation of the FizzBuzz function and a test.
build.zig: Build script for the project.build.zig.zon: Zig ZON configuration file.README.md: This file.
- Zig version 0.13.0 or higher.
To build the project, run the following command:
zig buildTo run the tests, use the following command:
zig build testThe fizzBuzz function prints the numbers from 1 to n, but for multiples of three, it prints "Fizz" instead of the number, and for multiples of five, it prints "Buzz". For numbers which are multiples of both three and five, it prints "FizzBuzz".
This project is licensed under the MIT License. See the LICENSE file for details.