Fizz Buzz in Verve

Published on 21 December 2023 (Updated: 21 December 2023)

Welcome to the Fizz Buzz in Verve page! Here, you'll find the source code for this program as well as a description of how the program works.

Current Solution

fn fizz_buzz_line(n: Int) -> String {
    match [n % 3, n % 5] {
        case [0, 0]: "FizzBuzz"
        case [0, _]: "Fizz"
        case [_, 0]: "Buzz"
        case _: to_string(n)
    }
}

fn fizz_buzz(start: Int, end: Int) {
    if not(start > end) {
        print(fizz_buzz_line(start))
        fizz_buzz(start + 1, end)
    }
}

fizz_buzz(1, 100)

Fizz Buzz in Verve was written by:

If you see anything you'd like to change or update, please consider contributing.

How to Implement the Solution

No 'How to Implement the Solution' section available. Please consider contributing.

How to Run the Solution

No 'How to Run the Solution' section available. Please consider contributing.