Fizz Buzz
Count from 1 to 50 and print the numbers out:
If a number is a multiple of three, print âFizzâ.
If itâs a multiple of 5, print âBuzzâ.
If itâs a multiple of 3 and 5, print âFizzBuzzâ.
For everything else, print the number itself. Note: You may wish to use arithmetic operator remainder (%):
Last updated
Was this helpful?