-
-
Save siman-man/75c54d146cd70b92ac3b7e7bca71e077 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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