#include<stdio.h>//header file
#include<conio.h>//header file
#include<math.h>//header files
void main() //starting of the main() function
{
int amt=1000,ti=2,r=3,p,in=300;//declaration of the variables
float ci;
clrscr();
printf("program that calculates the compound interest");
p=amt-in;
ci=p*(pow(1+(r/100),ti));
printf("\n\n\n\t\t------------OUTPUT------------");
printf("\n\nThe compound interest=%f",ci);//printing output
getch();
}