The classic interview filter, this time compiled. Count from 1 to 100 and substitute multiples according to the rules below.
./fizzbuzz
Expected result
1 2 Fizz 4 Buzz Fizz 7 8 Fizz Buzz 11 Fizz 13 14 FizzBuzz ... 97 98 Fizz Buzz
For your own tracking. Tests grade your code.
FizzBuzz
Fizz
Buzz
Expected files
fizzbuzz.c
Allowed functions
write
v0.40: Create exercises. Challenge the community.
Run the tests to grade your code
Build your code, then check each test here. Open a result to inspect its output.