Fibonacci series syso stmt

why do we have to print the syso stmt before the the logic and why not after c=c+1 if v print then v will b getting the output as 1,1,2,3,…13 .where and when to print the syso stmt how v know were to print it?

@Neha1997,
We can print the syso statement according to the question. We can print it before updation of values in the while loop or after updation of values in the while. The position of syso statement depends on the question output

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.