Skip to content

Instantly share code, notes, and snippets.

@ryu1-1uyr
Created September 4, 2017 18:06
Show Gist options
  • Save ryu1-1uyr/4ffa561f1cb9a6e315a7c2db01298ccf to your computer and use it in GitHub Desktop.
Save ryu1-1uyr/4ffa561f1cb9a6e315a7c2db01298ccf to your computer and use it in GitHub Desktop.
paiza 練習問題 rankC
inputnums = int(input())
for i in range(inputnums + 1):
if i == 0:
continue
if i % 15 == 0:
print("Fizz Buzz")
elif i % 3 == 0:
print("Fizz")
elif i % 5 == 0:
print("Buzz")
else:
print(i)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment