Skip to content

Instantly share code, notes, and snippets.

View mrmichaelgallen's full-sized avatar

Michael Allen mrmichaelgallen

View GitHub Profile
@mrmichaelgallen
mrmichaelgallen / FizzBuzz.py
Last active November 22, 2017 22:48
FizzBuzz using Python
userInput = int(raw_input("Please enter a number greater than two: "))
userInputPlus = userInput + 1
if userInput == 0 or userInput == 1 or userInput == 2:
print("You entered " + str(userInput) + ". " + "Please enter a number greater than three.")
else:
for i in range(1, userInputPlus):
if i % 3 == 0 and i % 5 == 0:
print("FizzBuzz")
elif i % 3 == 0: