Question: how to calculate compound interest in c?
Answer: Input principle amount. Store it in some variable say principle .
Input time in some variable say time .
Input rate in some variable say rate .
Calculate compound interest using formula, CI = principle * pow((1 + rate / 100), time) .
Finally, print the resultant value of CI .