Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

Untitled

a guest Mar 13th, 2018 54 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. #!ruby -Ku
  2.  
  3. module Kernel
  4.   def ∑( *args )  #  Sum of
  5.     args.inject( 0 ) { |i, j| i += j }
  6.   end
  7.  
  8.   def √( number ) #  Root of
  9.     Math.sqrt( number )
  10.   end
  11. end
  12.  
  13. puts √(49)
  14. puts ∑(1,2,3,4,5)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top