????????????????C++??PHP???
???????????? ???????[ 2015/2/5 14:21:46 ] ????????????? ??
?????????????
????????????С????????????????????????????????????????????????С??????μ??1000??????????á?????????????????????1.71%?????????????????????????????С?
????c++????
#include<iostream>
int main()
{
using namespace std;
const double RATE = 0.0171;
double money[48];
money[47] = 1000;
for (int i=47; i>0; i--)
{
money[i-1] = (money[i] + 1000)/(1+RATE/12);
}
for (int j=47; j>0; j--)
{
cout << "?? " << j << " ?±???????: " << money[j] << " ?
";
}
return 0;
}
????php????
<?php
$month = array();
$month[47] = 1000;
define("RATE"?? 0.0171);
for ($i=47; $i>0; $i--) {
$month[$i-1] = ($month[$i] + 1000)/(1+RATE/12);
}
for ($i=47; $i>0; $i--) {
echo "?? " . $i . " ?±????????" . $month[$i] . "?<br />";
}
?>
????C++??????н??
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11