I know how to obtain the square root of a number using the sqrt function.
sqrt
How can I obtain the cube root of a number?
I would discourage any of the above methods as they didn't work for me. I did pow(64, 1/3.) along with pow(64, 1./3.) but the answer I got was 3 Here's my logic.
ans = pow(n, 1/3.); if (pow(ans, 3) != n){ ans++; }