Kth Root - Error in Output

The output is coming out to be wrong. Please help me correct the code.

@Anaghajain dont store the value of the answer calculated by pow() in any variable but simply compare it in the of condition

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.

hello @Anaghajain
you have reopened the doubt .
if u still have any doubt the feel free to ask.

Sir, I am not able to understand what is wrong with my code. I have tried to directly calculate the value of power instead of storing it in an long long variable but it is still not working.
(test case 1000000000000000 10 - is not getting the correct value)

pls share ur updated code with me

use long long of all variables,and also for function return type

check ur updated code->

1 Like

Thank you very much sir!

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.