//C program to calculate Compound Interest
#include <stdio.h>
//for using pow function
// we must include math.h
#include<math.h>

//Driver Code
int main() 
{
    //Principle amount
    double principle=2300;

    //Rate
    double rate=7;

    //time
    double time=4;

    //Calculating Compound Interest
    double Amount
         =principle*((pow((1+rate/100),time)));
    double CI=Amount-principle;
    printf("Compound Interest is : %f",CI);
    return 0;
}

Embed on website

To embed this program on your website, copy the following code and paste it into your website's HTML: