Closed

php recursion question

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?

<?php

function phpMult($a,$b){

$c;

c = a + b;

echo " The sum of A and B is" <

Skills: Graphic Design, HTML, PHP, Website Design

See more: php recursion, recursion function, echo design, function recursion, loop sum, php function write, project multiplication, question using php, multiplication, multiplication php, correct php, sum loop, php loop, loop php, recursion, php multiple choice project, php mysql template project, php tell friend multiple, tell friend project subject, php mysql simple project, php tell form post, php mysql sample project

About the Employer:
( 150 reviews ) United Kingdom

Project ID: #4148682

14 freelancers are bidding on average $7/hour for this job

rajeshsonisl

Quality work assured. Ready to get started. Thanks.

$10 USD / hour
(396 Reviews)
7.0
DrTech76

Sending you the corrected code in PMB. Kind Regards

$5 USD / hour
(274 Reviews)
6.6
noxtras

haha, interesting project. took a while to figure out:)

$5 USD / hour
(64 Reviews)
5.4
kirilpanchev

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!

$5 USD / hour
(31 Reviews)
4.7
erickt

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 :-)

$30 USD / hour
(3 Reviews)
4.2
IceCream90

Hi, please look at the solution in PMB...

$5 USD / hour
(18 Reviews)
4.0
Pieter2627

Hi, that isn't correct (if I remember my beginner c++ reading of a few years back then you have used some c++ in there). I can guide you to the correct procedure, since it seem like you want to learn - hint you only ne More

$5 USD / hour
(1 Review)
2.0
DJHnjin

Hello, I already know where you have gone wrong, and I know the code to solve the problem. if you choose me, you will have answer in less than 20 minutes

$5 USD / hour
(1 Review)
1.5
media1rom

I Got interested of your job post for , I am confident that I can relate to this kind of work. I am hardworking, committed and diligent to an assigned task. Looking forward to working with you. Thank you so much . Re More

$5 USD / hour
(1 Review)
1.6
baeklor

Check solution in your PMB.

$5 USD / hour
(0 Reviews)
0.0
deepdreamzz

Hi, i know the problem as well as the solution. More details in PM. :-)

$5 USD / hour
(0 Reviews)
0.0
RavindraH1234567

I assure you the best of effort and services. Ravindra

$5 USD / hour
(0 Reviews)
0.0
khu84

Yeah I can this for you.

$5 USD / hour
(0 Reviews)
0.0
SiteBuilderNo7

i understand what you need, i am a phper for 5+ years, this can be done for 1 hour.thanks

$5 USD / hour
(0 Reviews)
0.0
domingomontes

Will do it

$7 USD / hour
(0 Reviews)
0.0