Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

fizzbuzz program in python

inputValue = int(input("Enter a Number: "))

if inputValue % 3 == 0 and inputValue % 5 == 0 :
    print("fizzbuzz")
elif inputValue % 3 == 0 :
    print("fizz")
elif inputValue % 5 == 0 :
    print("buzz")
else:
    print(inputValue)
 
PREVIOUS NEXT
Tagged: #fizzbuzz #program #python
ADD COMMENT
Topic
Name
4+4 =