Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

FizzBuzz FizzBuzz is a well known programming assignment, asked during interviews.

n = int(input())

for x in range(1, n,2):
    if x % 3 == 0 and x % 5 == 0:
        print("SoloLearn")
        continue
    elif x % 3 == 0:
        print("Solo")
        continue
    elif x % 5 == 0:
        print("Learn")
        continue
    else:
        print(x)
 
PREVIOUS NEXT
Tagged: #FizzBuzz #FizzBuzz #programming #asked
ADD COMMENT
Topic
Name
1+6 =