Run Code
|
Code Wall
|
Users
|
Misc
|
Feedback
|
About
|
Login
|
Theme
Division Function without / or * signs
#ruby 2.3.1 def divide(a,b) n = 0 while a >= b a = a - b n += 1 end return n end a = 100 b = 25 puts divide(a,b)
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
Adiel Vasquez
faktorial
Division Function without / or * signs
Ruby Inheritence
Hash and Symbols
simple cache
ruby LRU cache with constant get/set
regex.rb
IRSTSTMIDTRNS
Ruby custom inject
Please log in to post a comment.