Mar 13, 2013 at 2:24pm
total should be type double
, not int.
This line: total+=double pow(double x,int i)/i;
should read: total += pow(x, i)/i;
Mar 13, 2013 at 2:24pm
total+=double pow(double x,int i)/i;
→→ total+=pow(x, i)/i;
Read more about function calling.