Skip to content

Instantly share code, notes, and snippets.

@CamoCatX
Created May 27, 2023 15:44
Show Gist options
  • Save CamoCatX/e50871633e532971e90596599f57b6e4 to your computer and use it in GitHub Desktop.
Save CamoCatX/e50871633e532971e90596599f57b6e4 to your computer and use it in GitHub Desktop.
for num in range(1, 100):
if num % 3 == 0 and num % 5 == 0:
print("fizzbuzz")
elif num % 5 == 0:
print("buzz")
elif num % 3 == 0:
print("fizz")
else:
print(num)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment