From 5e2150cf1e7d56d7acbe580e804a22bd65a0ab5c Mon Sep 17 00:00:00 2001 From: Aly Klepper Date: Sun, 18 Oct 2020 23:06:17 +0000 Subject: [PATCH] Done. --- lib/math.rb | 27 ++++++++++++++++----------- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/lib/math.rb b/lib/math.rb index 011b88ff..6661339e 100644 --- a/lib/math.rb +++ b/lib/math.rb @@ -1,23 +1,28 @@ def addition(num1, num2) + num1 + num2 +end -end -def subtraction(num1, num2) +def subtraction(num1, num2) + num1 - num2 +end -end def division(num1, num2) + num1 / num2 +end -end -def multiplication(num1, num2) +def multiplication(num1, num2) + num1 * num2 +end -end -def modulo(num1, num2) +def modulo(num1, num2) + num1 % num2 +end -end -def square_root(num) - -end \ No newline at end of file +def square_root(num) + Math.sqrt(num) +end \ No newline at end of file