这个程序错在哪里了,求解!
#include <stdio.h>#include <math.h>
int main()
{
double d,p,r,m;
d=300000;
p=6000;
r=0.01;
m=[log10(p)-log10(p-d*r)]/log10(1+r);
printf("m=%.2f\n",m);
return 0;
}
2013-03-26 08:52
程序代码:#include <stdio.h>
#include <math.h>
int main()
{
double d,p,r,m;
d=300000;
p=6000;
r=0.01;
m=(log10(p)-log10(p-d*r))/log10(1+r);
printf("m=%.2f\n",m);
return 0;
}
2013-03-26 09:02

2013-03-26 10:53
2013-03-26 10:56
2013-03-26 11:38
2013-03-26 12:57
2013-03-26 15:02
2013-03-26 16:31