You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FizzBuzz(n)
Create String array called answers
digit = 0
for i=0 to n-1
digit = i + 1
if digit%3==0
answers[i] = "Fizz"
else if digit%5==0
answers[i] = "Buzz"
else
answers[i] = i
return answers