Skip to content
← Back to Community
FizzBuzz
Profile icon
L0STP0LAR

FizzBuzz is a exercise for the modulo operator. You print numbers 1 to 50 and if the number is a multiple of 3, instead of printing the number, print "Fizz" and if the number is a multiple of 5, print "Buzz".
If the number is both a multiple of 3 and 5, print "FizzBuzz".

Voters
Profile icon
L0STP0LAR