Data update
This commit is contained in:
parent
81fd053722
commit
52a6ef48dd
10248 changed files with 63654 additions and 6775 deletions
|
|
@ -0,0 +1,8 @@
|
|||
defmodule RC do
|
||||
def gcd(a,0), do: abs(a)
|
||||
def gcd(a,b), do: gcd(b, rem(a,b))
|
||||
|
||||
def lcm(a,b), do: div(abs(a*b), gcd(a,b))
|
||||
end
|
||||
|
||||
IO.puts RC.lcm(-12,15)
|
||||
Loading…
Add table
Add a link
Reference in a new issue