c/school/ch03_3-3.c · 173 字节 · 下载原文
#include <stdio.h>
#include <math.h>
int main(){
int d=300000,p=6000;
double r=0.01,m;
m=log10(p/(p-d*r))/log10(1+r);
printf("%.1f\n",m);
return 0;
}
c/school/ch03_3-3.c · 173 字节 · 下载原文
#include <stdio.h>
#include <math.h>
int main(){
int d=300000,p=6000;
double r=0.01,m;
m=log10(p/(p-d*r))/log10(1+r);
printf("%.1f\n",m);
return 0;
}