Permalink
Browse files

Code: Divide 1 by 2

  • Loading branch information...
a-leung committed Jan 10, 2019
1 parent f51a554 commit 60478c7452d1d3f736d1e94362e7f88bd10f2989
Showing with 5 additions and 1 deletion.
  1. +5 −1 divide.rb
@@ -1,3 +1,7 @@
def divide (numerator, denominator)
numerator
if denominator < 2
numerator
else
0
end
end

0 comments on commit 60478c7

Please sign in to comment.