On October 23rd, 2014, we updated our
By continuing to use LinkedIn’s SlideShare service, you agree to the revised terms, so please take a few minutes to review them.
Write a program that prints the numbers from 1 to 100. But for
multiples of three print “Fizz” instead of the number and for the
multiples of ﬁve print “Buzz”. For numbers which are multiples of
both three and ﬁve print “FizzBuzz”.
3 Fizz 5
Buzz 3 5 FizzBuzz