这样吗#include <stdio.h>#include <math.h>int main(){double m,d,p,r;d=300000;p=6000;r=0.01;m=log(p/(p-d*r))/log(1+r);printf("%0.1f\n",m);return 0;}