#include<iostream>
using namespace std;
int main()
{
cout << "Enter the monthly saving amount: ";
double account,sum=0;
cin >> account;
for (int i = 0; i < 6; i++)
{
sum = (sum + account)*(1 + 0.00417);
}
cout << "After the sixth month,the account value is " << sum;
return 0;
}
不行 第二章太水了 还是贴第三章吧。。