FizzBuzz

Easy
LeetCode #412

For each number from 1 to n, print "Fizz" if it's divisible by 3, "Buzz" if divisible by 5, "FizzBuzz" if divisible by both, or the number itself otherwise. Print each result on its own line.

Given variables
n: the upper bound (inclusive)
2 test cases
Hit Test to see output...
Loading WASM...Docs

You are not logged in.