Skip to content

Instantly share code, notes, and snippets.

@siman-man siman-man/ruby-quiz-answer.rb Secret
Last active May 15, 2019

Embed
What would you like to do?
# A1
n = 3e14
if n > 4782968
puts 'Hello World'
else
puts 'Hello Ruby'
end
# A2
a, b = $*[1, 2]
if a == b
puts 'Hello World'
else
puts 'Hello Ruby'
end
# A3
a = 5[2]
if a[0] == 1
puts 'Hello World'
else
puts 'Hello Ruby'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.