#include<stdio.h>
#include<math.h>
main()
{
int n;
double c=0.01875,x;
do{
x=x*pow(1+c,12)-1000;
n++;
}while(x>0);
printf("x=%d\n",x);
}
6.6
最新推荐文章于 2024-07-27 03:06:43 发布
#include<stdio.h>
#include<math.h>
main()
{
int n;
double c=0.01875,x;
do{
x=x*pow(1+c,12)-1000;
n++;
}while(x>0);
printf("x=%d\n",x);
}