Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

solution for FizzBuzz #106

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

nmack41
Copy link

@nmack41 nmack41 commented Sep 5, 2023

Nick's GemCity Tech's FizzBuzz challenge submission.

"Buzz"
elsif input % 3 == 0
"Fizz"
else input
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We put the body of the else clause on its own line.

Suggested change
else input
else
input
if var.check?
  the_truthy_thing
else
  the_falsey_thing
end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants