/*Program to calculate compount intrest*/ #include //Included to perform normal input output operations #include //Included to perform mathematical operations int main() { float p,n=0,r,buffer; cout<<"Principle : ";cin>>p; cout<<"Rate of intrest (%) : ";cin>>r; r/=100;//Similar to r=r/100 cout<<"Years : ";cin>>n; cout<<"Months : ";cin>>buffer; n+=(buffer/12); cout<<"Days : ";cin>>buffer; n+=(buffer/365); buffer=p*pow((1+r),n); cout<<"Compound intrest = "<