Here is my code, I get the error error "C2660: 'pow' : function does not take 2 parameters" referring to the line that says "pow(3, 2);
I need to output 3 to the power of 2 and that is all. Please help me out.
#include<iostream.h>
#include<math.h>
math()
{
double pow();
double x = 2,y = 3;
double x_to_the_y;
cout << pow(3, 2);
return 0;
}
I need to output 3 to the power of 2 and that is all. Please help me out.
#include<iostream.h>
#include<math.h>
math()
{
double pow();
double x = 2,y = 3;
double x_to_the_y;
cout << pow(3, 2);
return 0;
}