16.
#include <stdio.h> int main()
{
double remain = 100.0;
int years=;
while(remain>)
{
remain = remain * 0.08 + remain - 10.0;
printf("%f \t", remain);
printf("years:%d \n", years);
years++;
}
printf("一共可以取:%d 年", years); getchar();
return ;
}
2024-04-10 12:53:00
16.
#include <stdio.h> int main()
{
double remain = 100.0;
int years=;
while(remain>)
{
remain = remain * 0.08 + remain - 10.0;
printf("%f \t", remain);
printf("years:%d \n", years);
years++;
}
printf("一共可以取:%d 年", years); getchar();
return ;
}