Bhuvan InfoTech Android App

Download our Android App and browse Technical News, Projects, Computer Tricks more easily with lots of Interesting Features.

Tuesday, June 14, 2016

Calculate Simple interest | C Program

/*    Calculate Simple interest    */
#include<stdio.h>
int main()
{
 float p,r,t,in;

  printf("Enter principle amount : ");
  scanf("%f",&p);
  printf("\n Enter rate of intrest : ");
  scanf("%f",&r);
  printf("\n Enter time (in year) : ");
  scanf("%f",&t);
  in=p*r*t/100;
  printf("\n Total intrest : %.2f",in);
 return 0;
}

Bhuvan Arora

No comments:

Amazing Deal !