Question : You are given two integers n and k. Find the greatest integer x, such that, x^k <= n.

I am using this formula to calculate x

x = 10 ^ (log10(n) / k)

x is int so decimal part automatically is taken care of.

Test Case 2 is not working Why?