/*
Daphne 以 10%的单利投资 每年的利润 为 100 * (1 + 0.1)
Cle0 以5%的复利投资,利息 = 本金 * 利率
*/
#include <iostream>
float simpleInterest (float nomey, int yealy);
float doubleInterest(float nomey, int yealy);
using namespace std;
int main()
{
float daphneInterst = 0<
C++计算单利与复利
最新推荐文章于 2025-05-14 17:12:06 发布