Posts

Showing posts with the label Compound Interest

C Program to Calculate Compound Interest चक्रवृद्धि ब्याज (Compound Interest) की गणना करने का C प्रोग्राम

Compound Interest is the interest calculated on the initial principal as well as the accumulated interest of previous periods. Compound Interest (चक्रवृद्धि ब्याज) वह ब्याज है जिसकी गणना मूलधन के साथ-साथ पिछले समय में अर्जित ब्याज पर भी की जाती है। Formula (सूत्र) Amount = P × (1 + R/100)ᵀ Compound Interest = Amount − P Where: P = Principal Amount (मूलधन) R = Rate of Interest (ब्याज दर) T = Time (समय) C Program #include <stdio.h> #include <math.h> int main(void) { float p, r, t, ci; printf("Enter Principal, Rate and Time:\n"); scanf("%f %f %f", &p, &r, &t); ci = (p * pow(1 + r / 100, t)) - p; printf("Compound Interest = %.2f\n", ci); return 0; } Output Enter Principal, Rate and Time: 10000 5 2 Compound Interest = 1025.00 Explanation (व्याख्या) Three values are accepted from the user: principal, rate and time. यूजर से मूलधन, ब्याज दर और समय की तीन वैल्यू इनपुट ली जाती हैं। The pow() function calculates the po...