Resources » Articles/Knowledge Sharing » Computer & Technology

C programme to find simple and compound interest


Posted Date: 20-Aug-2008  Last Updated:   Category: Computer & Technology    
Author: Member Level: Gold    Points: 1






#include
#include
#include
void main()
{
float p,n,r,si,ci,a;
clrscr();
printf("Enter the values for P,N,R");
scanf("%f%f%f",&p,&n,&r);
si=p*n*r/100;
a=p*pow((1+r/100),n);
ci=a-p;
printf("Simple Interest = %f",si);
printf("\nCompount Interest = %f",ci);
getch();
}


Did you like this resource? Share it with your friends and show your love!




Responses to "C programme to find simple and compound interest"

No responses found. Be the first to respond...

Feedbacks      

Post Comment:




  • Do not include your name, "with regards" etc in the comment. Write detailed comment, relevant to the topic.
  • No HTML formatting and links to other web sites are allowed.
  • This is a strictly moderated site. Absolutely no spam allowed.
  • Name:   Sign In to fill automatically.
    Email: (Will not be published, but required to validate comment)



    Type the numbers and letters shown on the left.


    Submit Article     Return to Article Index

    Awards & Gifts
    Active Members
    TodayLast 7 Daysmore...

    ISC Technologies, Kochi - India. Copyright © All Rights Reserved.