Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python fizzbuzz

for num in range(1, 101):
    if num % 3 == 0 and num % 5 == 0:
        print("FizzBuzz")
    if num % 3 == 0:
        print("Fizz")
    if num % 5 == 0:
        print("Buzz")
    else:
        print(num)
 
PREVIOUS NEXT
Tagged: #python #fizzbuzz
ADD COMMENT
Topic
Name
9+2 =