मूलधन, दर, और समय दिया गया है। चक्रवृद्धि ब्याज की गणना करें: CI = P * (1 + r/100)^t।
उदाहरण: P=10000, r=10.25%, t=5 वर्ष → CI = 16288.9।
C++ कार्यान्वयन
#include <bits/stdc++.h>
using namespace std;
int main() {
double principle = 10000, rate = 10.25, time = 5;
double CI = principle * pow((1 + rate / 100), time);
cout << "Compound interest is " << CI;
return 0;
}
आउटपुट
Compound interest is 16288.9