At the time 9:10

I wanted to ask that at this time when the teacher is doing dry run by using the call stack then why is he multiplying the ans returned by the top most call stack with the value of a , even though there is no such instruction in the code as I have also dry run it

@jsn853 hey their is a if condition specially written in program which tells us when we need to multiply the returned value after squaring to a.
We multiply it with a after squaring when n is odd.
If this resolves your doubt mark it as resolved.

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.