C program to calculate Simple Interest | Simple Interest program in C Language

Spread the love

In this post, We are going to discuss the Simple Interest program in C Language. Before writing the program, Here is the simple interest formula.

What is Simple Interest :

A quick method of calculating the interest charge on a loan. Simple interest is determined by multiplying the interest rate by the principal by the number of periods.

Simple Interest program :

  1. #include<stdio.h>
  2. #include<conio.h>
  3. void main()
  4. {
  5.   float p,r,t,si;
  6.   clrscr();
  7.   printf(“Enter the amount: “);
  8.   scanf(“%f”,&p);
  9.   printf(“Enter the rate of intrest in percent: “);
  10.   scanf(“%f”,&r);
  11.   printf(“Enter the time in year: “);
  12.   scanf(“%f”,&t);
  13.   si = p*r*t/100;
  14.   printf(“Simple Interest is : %.2f \n”, si);
  15.   getch();
  16. }

Program Output :

This program is compiled and executed under the Windows Operating system.

Simple-Interest-program-in-c-language

Related Programs:

Venkat

Hi Guys, I am Venkatesh. I am a programmer and an Open Source enthusiast. I write about programming and technology on this blog.

You may also like...

2 Responses

  1. have a look at my code:Program to calculate the simple interest:
    https://chetnet.blogspot.in/2017/08/c-programs.html

  2. Very informative article.Thank you author for posting this kind of article .


    http://www.wikitechy.com/view-article/power-function-in-c-with-example-and-explanation

    Both are really good,
    Cheers,
    Venkat

Leave a Reply