I keep getting '1' as the answer to this. My instructor says to use
1.0/3.0 instead of 1/3 to get the cuberoot. Then I get an overload error. Help?!
Code:#include <iostream> #include <conio.h> #include <math.h> using namespace std; int main() { float x = 20; float cuberoot = pow(x, 1/3); cout << cuberoot; getch(); return 0; }