Practice · 2 of 4
FizzBuzz Function
CHALLENGE
Difficulty: beginner+25 XP
Implement const char* fizzbuzz(int n): "fizzbuzz" when divisible by 15, "fizz" by 3, "buzz" by 5, else "no".
Press Submit to check your solution.
Back to lesson: Practice: Decomposition