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
piramid2
variables 1
Hash and Symbols
Arithmetic Operations, Function Calls, Recursion and more in Ruby
piramid
simple cache
Calculator
string orperations lecture and print
piramid4
Ruby Inheritence