Created
January 13, 2015 22:45
-
-
Save Ebeta/5e3bee9c13e3b14cdf04 to your computer and use it in GitHub Desktop.
This file contains 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
#this question is from the first section and is the seco | |
puts "Let’s start with an easy one. Write the expression 1+1 in two different, but equivalent ways." | |
puts "Answer :" | |
puts "1.+(1)" #this answer is in standard ruby syntax | |
# Ruby Data Types: BigNum | |
puts "When a Fixnum grows too large, it becomes a Bignum. What's the largest Fixnum?" | |
puts "Answer:" | |
puts "4611686018427387904" #This is 2**62 -1 which was found in google | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment