Skip to content

Instantly share code, notes, and snippets.

@creaturenex
Last active December 1, 2022 19:25
Show Gist options
  • Save creaturenex/b8fbe5783e838a4e4260278ce3f9ae46 to your computer and use it in GitHub Desktop.
Save creaturenex/b8fbe5783e838a4e4260278ce3f9ae46 to your computer and use it in GitHub Desktop.
shopify coding challenge
def solution(number)
case
when number % 5 == 0 && number % 3 == 0 then "FizzBuzz"
when number % 5 == 0 then "Buzz"
when number % 3 == 0 then "Fizz"
else
number
end
end
@creaturenex
Copy link
Author

Thanks Nick!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment