Examples of C part 44 calculate only simple interest

Program :
#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);
}
Output:
Enter Pricipal
3000
Enter Rate in percentage
5
Enter Time in years(decimals)
3
Simple Interest is 450.000000
Explanation:
Soon