Run Code
|
API
|
Code Wall
|
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
variables 1
numbers
MACK FIRST wall
IS_IP?
soncita
interacting through strings with loops
faktorial
Ruby
Calculator
yes