At time stamp 11.51

i didnot understand substraction part at time indx 11.51

you are finding the square root at decimal level.
so you will come out of the loop:
while(ans x ans <=n) (note: x is multiplication)
ans = ans+inc;
only when condition becomes false. it means ans x ans becomes > n. but if i do
ans = ans - inc. which is last iteration of while loop when condition was true. then ans x ans would be <=n, which we need before going into next iteration of times.

thanks

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.