From a01bee14c20fef0060557932c1acf585ea1796cd Mon Sep 17 00:00:00 2001 From: Vgichira39 Date: Wed, 23 May 2018 08:56:26 +0300 Subject: [PATCH] This is the a function to divide two numbers using recursive subtraction --- challenge.php | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 challenge.php diff --git a/challenge.php b/challenge.php new file mode 100644 index 0000000..7adac73 --- /dev/null +++ b/challenge.php @@ -0,0 +1,17 @@ += 0) { + $number1 = $number1-$number2; + $quotient = $quotient+1; + } + // return value for the function + return $quotient; +} + +?> \ No newline at end of file