Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
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.
MACK FIRST wall
ruby LRU cache with constant get/set
Arithmetic Operations, Function Calls, Recursion and more in Ruby
comments
3.4.0 / 3.5.2 / 3.5.1 / 3.6.1 / 3.6.5.#
Hash and Symbols
Ruby Inheritence
testing ruby
piramid
ElaineBrown** rextester.com
Please log in to post a comment.