Create a Java program that generate the following series using recursive function.
100 200 300 400 500 600 700 800 900 1000
i don't know how to use this function anyone can help me ??
Anas
Level 0
can someone help me with the recursive function??
Under discussion
Comments (1)
- Popular
- New
- Old
You must be signed in to leave a comment
green
19 March 2020, 00:39
The point of recursion is the have the method call itself until it reaches a base case. So, make sure your parameter is a integer. And the base case could be 0 in this problem. You can reduce by 100 each pass through the recursion.That would essentially give you your solution.
Good luck. I dont want to ruin your learning opportunity by giving the answer (exact code), but iv told you exactly what to do. Ill let you write out the solution, and dont worry all the instructions you need are there. Cheers
0