Skip to content

Commit 8f51146

Browse files
committed
fizzbuzz
1 parent f7a9e9a commit 8f51146

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

Level_03/Beispielcode/fizzbuzz.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
for i in range(1, 16):
2+
output = ""
3+
if i % 3 == 0:
4+
output += "fizz"
5+
if i % 5 == 0:
6+
output += "buzz"
7+
print(output or i)
8+

0 commit comments

Comments
 (0)