标签:
/*利息*/
#define NIAN 10
#define CHUSHI 5000.00
main(){
int year;
double nianmo,nianchu,lilv;
nianchu=CHUSHI;
lilv=0.11;
year=0;
while(year<=NIAN)
{ printf("%d%lf",year,nianchu);
nianmo=nianchu+nianchu*lilv;
year++;
nianchu=nianmo;
}
}
标签:
原文地址:http://www.cnblogs.com/haogong10333/p/4889245.html