Write a C Program to calculate simple interest

Calculate simple interest


Write a C Program to calculate simple interest. Here’s simple Program to calculate simple interest in C Programming Language.


Below is the source code for C Program to calculate simple interest which is successfully compiled and run on Windows System to produce desired output as shown below :


SOURCE CODE : :


/*  C Program to calculate simple interest  */

#include<stdio.h>
#include<conio.h>

int main()
{
  float principal,rate,time;
  float simpleInterest;
  printf("Enter the principal amount :: ");
  scanf("%f",&principal);
  printf("\nEnter the rate of interest :: ");
  scanf("%f",&rate);
  printf("\nEnter the time duration :: ");
  scanf("%f",&time);
  simpleInterest=(principal*rate*time)/100;
  printf("\nThe simple interest is %f \n",simpleInterest);

  return 0;
}

OUTPUT : :


Enter the principal amount :: 385000

Enter the rate of interest :: 13.89

Enter the time duration :: 4

The simple interest is 213906.000000

Above is the source code for C Program to calculate a simple interest which is successfully compiled and run on Windows System.The Output of the program is shown above .

If you found any error or any queries related to the above program or any questions or reviews , you wanna to ask from us ,you may Contact Us through our contact Page or you can also comment below in the comment section.We will try our best to reach up to you in short interval.


Thanks for reading the post….

No Comments

Leave a Reply