Click here to Skip to main content
15,665,166 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
im facing problem to solve this using recursion..without recursion i solved it but how can i code it using recursion

What I have tried:

i tried it without recursion and solved it but using recursion function my code isn't giving the actual result..Im beginner in coding
Posted
Updated 31-Dec-18 8:00am
Comments
Patrice T 31-Dec-18 13:56pm    
And HCF is ?
OriginalGriff 31-Dec-18 13:58pm    
Highest Common Factor.
Patrice T 31-Dec-18 14:06pm    
I am not used to American abbreviations :)
Patrice T 31-Dec-18 14:04pm    
"my code isn't giving the actual result."
show your code

1 solution

You clearly aren't trying, except to post near identical questions in the hope we do it for you: Write a recursive function to print first N even number using Python[^]

We do not do your homework: it is set for a reason. It is there so that you think about what you have been told, and try to understand it. It is also there so that your tutor can identify areas where you are weak, and focus more attention on remedial action.

Try it yourself, you may find it is not as difficult as you think!

If you meet a specific problem, then please ask about that and we will do our best to help. But we aren't going to do it all for you!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900