@BlueBowser/

FizzBuzz

Python

No description

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#fizzbuzz.py

for i in range(1, 20):
  if (i % 3 == 0) and (i % 5 == 0):
    print("FizzBuzz")
  elif (i % 5 == 0):
    print("Buzz")
  
  elif (i % 3 == 0):
    print("Fizz")
  else:
    print(i)