Write a program Calculate Simple interest

 Write a program Calculate Simple interest in c.


Write a program Calculate Simple interest


/*    Calculate Simple interest    */

#include<stdio.h>
#include<conio.h>
void main()
{
 float p;
 float i,t;
 float r;
  printf("Type your principle amount : ");
  scanf("%f",&p);
  printf("\n Type your rate of intrest : ");
  scanf("%f",&i);
  printf("\n Type time (in year) : ");
  scanf("%f",&t);
  r=p*i*t/100;
  printf("\n You will get intrest : %.2f",r);
getch();
}



output:-

Type your principle amount : 500
Type your rate of intrest : 5 Type time (in year) : 2 You will get intrest : 50.00


Related C Programs..

Post a Comment

0 Comments