Contact Learn C
Copy Program Share Program

Program 174:Calculate only Simple Interest

Program 174:
 
#include<stdio.h>
main()
{ 
  float p,r,t,simpleInterest;
  printf("Enter Pricipal\n");
  scanf("%f",&p);
  printf("Enter Rate in percentage \n");
  scanf("%f",&r);
  printf("Enter Time in years(decimals)\n");
  scanf("%f",&t);
  simpleInterest=(float)(p*r*t)/100.0;
  printf("Simple Interest is %f\n",simpleInterest);  
}


Explanation:

Same as the previous program.click here

Output:





 

Download App and Learn when ever you want

Get it on PlayStore
Get it on Amazon App Store
Get it on Aptoide