Created
May 27, 2023 15:44
-
-
Save CamoCatX/e50871633e532971e90596599f57b6e4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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