![](https://i-blog.csdnimg.cn/blog_migrate/7457413b39ae50fb1dbf59521013f36b.png)
程序里面单利和复利怎么说
Here you will get C++ program to find compound interest.
在这里,您将获得C ++程序来查找复利。
#include<iostream>
#include<math.h>
using namespace std;
int main()
{
float p,r,t,ci;
cout<<"Enter Principle, Rate and Time:\n";
cin>>p>>r>>t;
ci=p*pow((1+r/100),t);
cout<<"\nCompound Interest = "<<ci;
return 0;
}
Output
输出量
Enter Principle, Rate and Time: 1000 2 4
输入原理,费率和时间: 1000 2 4
Compound Interest = 1082.43
复利= 1082.43
翻译自: https://www.thecrazyprogrammer.com/2011/03/c-program-to-find-compund-interest.html
程序里面单利和复利怎么说