I want to write a PHP function that performs multiplication WITHOUT using a loop or the * operator. It should use repeated addition with recursion.
Where have i gone wrong?
this project is to tell me if this is correct?
c = a + b;
echo " The sum of A and B is" <
14 freelancers are bidding on average $7/hour for this job
Dear sir, I have over 10 years of experience in Web Development including PHP, Smarty, MySQL, jQuery, etc. Also I am Zend Certified PHP Developer (ZCE). I can help you out with your troubles. Let's do it!
recursion call is not ok. It should be repeated as serveral times as you want to add an element...... If you don't have the answer with this, i can do this funciton for you :-)