Skip to content

Instantly share code, notes, and snippets.

@Ebeta
Created January 13, 2015 22:45
Show Gist options
  • Save Ebeta/5e3bee9c13e3b14cdf04 to your computer and use it in GitHub Desktop.
Save Ebeta/5e3bee9c13e3b14cdf04 to your computer and use it in GitHub Desktop.
#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