Your task is to write a Rust program that implements the classic programming challenge known as FizzBuzz.
You are given a function fizz_buzz(num: u32) -> String
that takes a single parameter num
of type u32
and returns a String
.
Your job is to return a string based on the following rules:
Here's how the behavior of the function should look like:
Good luck, and happy coding!