Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

FizzBuzz

for (let i = 1, msg; i <= 100; i++, msg = '') {
  if (!(i % 3)) msg += 'Fizz';
  if (!(i % 5)) msg += 'Buzz';
  console.log(msg || i);
}
Source by gist.github.com #
 
PREVIOUS NEXT
Tagged: #FizzBuzz
ADD COMMENT
Topic
Name
3+7 =