Calculate Simple Interest C Program

C Program To Calculate Simple Interest

Learn How To Calculate Simple Interest in C Programming Language. We have enlisted Two different methods to Find Simple Interest and amount associated to it. The First method calculates Simple Interest without using Function and the Second method has a User – Defined Function to find the Simple Interest. Simple interest is basically a quick and easy calculation on the Interest charged on a given principal amount.


Formula To Find Simple Interest

Simple Interest = (p * n * r) / 100

where,

p = Principal Amount,

n = Number of Years / Period

r = Rate of Interest

Output

Principal Amount = ₹ 3000

Period = 3 years

Rate of Interest = 10%

Simple Interest = ₹ 900

This C Program takes the values of p, n and r from the user and then applies the above given mathematical formula for simple interest calculation.


Must Read: C Program To Calculate Compound Interest using Functions

Method 1: C Program To Find Simple Interest without Function

Method 2: C Program To Calculate Simple Interest using Function

Must Read: C Program To Display Current Date and Time

Output

Calculate Simple Interest in C Programming Language with and without Functions

In case you get any compilation errors in this C Program To Calculate Simple Interest or you have any doubts about it, let us know about it in the Comment Section below.

Tushar Soni

I am Tushar Soni, Co - Founder of CodingAlpha. I am a computer science student from India and passionate about Web Development and Programming. Connect with me on Facebook | LinkedIn | Google Plus

6 thoughts on “Calculate Simple Interest C Program

  • November 29, 2015 at 7:49 pm
    Permalink

    It’s a good thing because knowledge not only for self

    Reply
    • July 31, 2016 at 7:19 pm
      Permalink

      Yes. Our main motive is to share whatever we know about Programming.

      Reply
  • September 13, 2016 at 2:12 am
    Permalink

    I will always prefer the Simple Interest using Function code in C Programming since it gives more modularity and resusability to the function.

    Reply
  • September 16, 2016 at 8:45 pm
    Permalink

    I want to print 3 digits after the decimal point in the result. Can you help me with that?

    Reply
    • September 16, 2016 at 8:48 pm
      Permalink

      Sure! Just use this format specifier to print the answer
      %0.3f. This will get you the correct output.

      Reply

Join The Discussion