Created
September 22, 2016 16:24
-
-
Save luigidon/b0858044fc9a500b71596021d925c8c9 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
izbrano_stevilo = 0 | |
izbrano_stevilo = int(raw_input("Vnesi stevilo od 1 do 100!")) | |
for x in range(1,izbrano_stevilo+1): | |
if ((x % 3) == 0) and ((x % 5) == 0): | |
print("fizzbuzz") | |
elif (x % 5) == 0 : | |
print("buzz") | |
elif (x % 3) == 0 : | |
print("fizz") | |
else: | |
print(x) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment