Hello im a student and this is homework so i just need help, thank you. My problem is with this fibonacci sequence, we need to write a recursive function that returns void. I think i pretty much understand recursion. Please help.
I initialized result=1 in the main function. For i, it is the value that the for loop is looping.
if(i<=2)
{
result+=1;
}
if(i>2)
{
(fibRecursive(i-1,result),fibRecursive(i-2,result));
}