Hi..Im sabreen, a beginner in the language C. Very recently i have started learning about functions and i am having some trouble solving a problem of recursive function.
The problem is :
I have to write a code in which the user will input 2 integers-let them be a=1,b=1. The output should be an arithmetic series in which each number is the sum of the previous 2 numbers. For example, in this case, the 1st two numbers are 1 and 1. The series should be like this :
1 1 2 3 5 8 13 21 34
The series should continue from 1 to 50.
I'm having trouble understanding the recursive function which we have to use to write the codes for this program.
If you can, please help me.
btw, Dick, thanks for your reply to my last post.