CRX-Fibonacci Series

I do not understand why int counter = 1; it is used why a loop is running n+ 1 times

To get the desired output for every input, check that it is required to print the n+1th number for its respective input as the series is starting from 0. If it’s starting from 1,1,2… the loop will run for n times only

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.