Skip to content

Commit d6ed2c3

Browse files
authored
Merge pull request #80 from zbarovsky/main
completed fizzbuzz correctly
2 parents aa71d0c + 1e2066b commit d6ed2c3

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Python/fizz_buzz_zbarovsky.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
for i in range (1, 101):
2+
if i % 3 == 0 and i % 5 == 0:
3+
print('fizzbuzz')
4+
elif i % 3 == 0:
5+
print('fizz')
6+
elif i % 5 == 0:
7+
print('buzz')
8+
else:
9+
print(i)

0 commit comments

Comments
 (0)