#include
#include
#include
using namespace std;
int main()
{
int year;
double money,rate,sum=0;
cout<<"Please enter money:";
cin>>money;
cout<<"\nPlease enter rate:";
cin>>rate;
cout<<"\nPlease enter year:";
cin>>year;
sum=money*(1+pow(money,1+rate));//计算sum
cout<<"\nThe Sum is:"<<
fixed<
return 0;
}
/*把你的计算本息和的公式用c语言分解了*/
#include"stdio.h"
main()
{
int money,year,i;
float rate,sum;
printf("input money and year:\n");
scanf("%d%d",&money,&year);
printf("input rate:\n");
scanf("%f",&rate);
sum=money;
for(i=0;i
printf("ben xi he :%f\n",sum);
}