Solve this recursive | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Solve this recursive

$num = 5; function recursive($num) { if($num>1){ recursive($num/2); recursive($num/2); } echo '*'; } recursive($num);

23rd Jun 2018, 11:28 AM
Hamza Zafar Ahmed
Hamza Zafar Ahmed - avatar
3 Answers
+ 2
Is this a quiz question? If so you can view the answers to all questions you got wrong after the results are made for any question you may have answered wrong.
23rd Jun 2018, 11:36 AM
Michelangelo
Michelangelo - avatar
+ 1
** <- answer
23rd Jun 2018, 12:39 PM
‎ ‏‏‎Anonymous Guy
0
Michelangelo sorry I just missed type, now you can consider it...
23rd Jun 2018, 11:39 AM
Hamza Zafar Ahmed
Hamza Zafar Ahmed - avatar