Skip to content

Commit

Permalink
Merge pull request mouredev#4368 from ShinMugenNoKabe/reto0
Browse files Browse the repository at this point in the history
Reto #0 - Python
  • Loading branch information
kontroldev authored Jul 30, 2023
2 parents 5739fd0 + 8f822dd commit f6ab3ac
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
def fizzbuzz():
for i in range(1, 101):
if i % 3 == 0 and i % 5 == 0:
print("fizzbuzz")
elif i % 3 == 0:
print("fizz")
elif i % 5 == 0:
print("buzz")
else:
print(i)

if __name__ == "__main__":
fizzbuzz()

0 comments on commit f6ab3ac

Please sign in to comment.