When you recurse, you do not return anything.
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
This recursive function should return "1" in the first call (with "3"), but it still returns "false" ("0").
Output:
Please let me know why this happens.
With any value of "a" that is less than 12 the function should still return "true" eventually, I think.
Thank you.