#include
#include
#include
#include
int main(void)
{
int d = 300000, p = 6000;
double r = 0.01, m;
m = log10(p / (p - d * r)) / log10(1 + r);
printf("贷款%d需要%.1lf月能还完", d, m);
return 0;
}
#include <stdio.h>
#include<stdlib.h>
#include<string.h>
#include<math.h>
int main(void)
{
int d = 300000, p = 6000;
double r = 0.01, m;
m = log10(p / (p - d * r)) / log10(1 + r);
printf("贷款%d需要%.1lf月能还完", d, m);
return 0;
}
登录后提交答案