While writing a program I came across finding the cube root of a number in one of my functions.
when I used the below code, I was getting an incorrect value for the
Try it
Math.Ceiling(Math.Pow(n, (double)1 / 3));