Your missionThe classic interview filter, this time compiled. Count from 1 to 100 and substitute multiples according to the rules below.See it in action./fizzbuzz1 2 Fizz 4 Buzz Fizz 7 8 Fizz Buzz 11 Fizz 13 14 FizzBuzz ... 97 98 Fizz Buzz Your checklistOutput each integer from 1 to 100 on its own line. End every line with a newline, including the last.The combined case takes priority: multiples of 15 print FizzBuzz.Multiples of 3 only print Fizz.Multiples of 5 only print Buzz.Every other integer prints as-is.Use only the write function.ConstraintsExpected filefizzbuzz.cAllowed functionswrite
Your missionThe classic interview filter, this time compiled. Count from 1 to 100 and substitute multiples according to the rules below.See it in action./fizzbuzz1 2 Fizz 4 Buzz Fizz 7 8 Fizz Buzz 11 Fizz 13 14 FizzBuzz ... 97 98 Fizz Buzz Your checklistOutput each integer from 1 to 100 on its own line. End every line with a newline, including the last.The combined case takes priority: multiples of 15 print FizzBuzz.Multiples of 3 only print Fizz.Multiples of 5 only print Buzz.Every other integer prints as-is.Use only the write function.ConstraintsExpected filefizzbuzz.cAllowed functionswrite