Find Jobs
Hire Freelancers

php recursion question

$5 USD / hour

Fechado
Publicado há aproximadamente 11 anos

$5 USD / hour

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" <
ID do Projeto: 4148682

Sobre o projeto

14 propostas
Projeto remoto
Ativo há 11 anos

Quer ganhar algum dinheiro?

Benefícios de ofertar no Freelancer

Defina seu orçamento e seu prazo
Seja pago pelo seu trabalho
Descreva sua proposta
É grátis para se inscrever e fazer ofertas em trabalhos
14 freelancers estão ofertando em média $7 USD/hora for esse trabalho
Avatar do Usuário
Quality work assured. Ready to get started. Thanks.
$10 USD em 1 dia
5,0 (396 avaliações)
7,0
7,0
Avatar do Usuário
Sending you the corrected code in PMB. Kind Regards
$5 USD em 1 dia
4,9 (274 avaliações)
6,6
6,6
Avatar do Usuário
haha, interesting project. took a while to figure out:)
$5 USD em 1 dia
4,9 (64 avaliações)
5,4
5,4
Avatar do Usuário
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 em 1 dia
5,0 (31 avaliações)
4,7
4,7
Avatar do Usuário
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 em 1 dia
4,9 (3 avaliações)
4,2
4,2
Avatar do Usuário
Hi, please look at the solution in PMB...
$5 USD em 0 dia
4,9 (18 avaliações)
4,0
4,0
Avatar do Usuário
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 need the a and b variable.
$5 USD em 1 dia
5,0 (1 avaliação)
2,0
2,0
Avatar do Usuário
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 em 1 dia
5,0 (1 avaliação)
1,5
1,5
Avatar do Usuário
Check solution in your PMB.
$5 USD em 1 dia
0,0 (0 avaliações)
0,0
0,0
Avatar do Usuário
Hi, i know the problem as well as the solution. More details in PM. :-)
$5 USD em 10 dias
0,0 (0 avaliações)
0,0
0,0
Avatar do Usuário
I assure you the best of effort and services. Ravindra
$5 USD em 4 dias
0,0 (0 avaliações)
0,0
0,0
Avatar do Usuário
Yeah I can this for you.
$5 USD em 40 dias
0,0 (0 avaliações)
0,0
0,0
Avatar do Usuário
Will do it
$7 USD em 2 dias
0,0 (0 avaliações)
0,0
0,0

Sobre o cliente

Bandeira do(a) UNITED KINGDOM
United Kingdom
4,3
150
Membro desde dez. 10, 2009

Verificação do Cliente

Obrigado! Te enviamos um link por e-mail para que você possa reivindicar seu crédito gratuito.
Algo deu errado ao enviar seu e-mail. Por favor, tente novamente.
Usuários Registrados Total de Trabalhos Publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Carregando pré-visualização
Permissão concedida para Geolocalização.
Sua sessão expirou e você foi desconectado. Por favor, faça login novamente.