Last active
May 2, 2021 17:21
-
-
Save Skydrifa/9d09318ded8d441fb9624f1a25e1cdcb to your computer and use it in GitHub Desktop.
estranho
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
# Homework 8.3: FizzBuzz | |
game_start = int(input("Select a number between 1 and 100: ")) | |
for ciclo_start in range(1, game_start+1): | |
if ciclo_start % 5 == 0 and ciclo_start % 3 == 0: # resultados | |
print("fizzbuzz") | |
elif ciclo_start % 5 == 0: | |
print("buzz") | |
elif ciclo_start % 3 == 0: | |
print("fizz") | |
else: | |
print(game_start) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment