N initialization

why we are not initialize separate n.

@aayushveer9_9036417178d04a74 we can save memory by utilizing the same variable ‘n’ to store the remaining number.

for eg - if n=1234 we extracted 4 from it by using % (mod) operator I.e 1234%10 = 4 now instead of wasting memory of variable n we store the remaining number 123 in same variable n i.e n=123.

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.