C Program to Calculate Simple Interest


Calculation of simple interest:


simple interest is determined by multiplying the interest rate by the principal by the number of periods. Simple interest is called simple because it ignores the effects of compounding. The interest charge is always based on the original principal, so interest on interest is not included.

si = p r t/100 where p is principal, r is rate of interest and t is time.

Program:

// C program to calculate simple interest 

#include<stdio.h>
void main() 

int p,n; 
float r,si; 
printf("\n enter values of p,n,andr"); 
scanf("%d %d %f",&p, &n, &r); 
si=(float)p * (float)n * r / 100; 
printf("simple interest =rs. %f",si); 
Share this post
  • Share to Facebook
  • Share to Twitter
  • Share to Google+
  • Share to Stumble Upon
  • Share to Evernote
  • Share to Blogger
  • Share to Email
  • Share to Yahoo Messenger
  • More...
 
Posts RSSComments RSSBack to top
© 2013 Updated Tech News Results and Reviews