Skip to content

alexrios/fizzbuzz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FizzBuzz

This is a toy project to practice Zig dependency fetching. The project implements the classic FizzBuzz problem and includes a simple test.

Project Structure

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

Requirements

  • Zig version 0.13.0 or higher.

Building the Project

To build the project, run the following command:

zig build

Running Tests

To run the tests, use the following command:

zig build test

FizzBuzz Function

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

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

This is a toy project to practice Zig dependency fetching

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages