Here you will get C program to calculate simple interest. The formula for simple interest is given below:

**P x r x t ÷ 100**

Where, **P** is principal, **r** is rate and **t** is time.

Lets have a look on program to calculate simple interest.

## C Program to Calculate Simple Interest

1 2 3 4 5 6 7 8 9 10 11 12 |
#include<stdio.h> void main() { float p,r,t,si; printf("Enter principal,rate and time:"); scanf("%f%f%f",&p,&r,&t); si=(p*r*t)/100; printf("\nSimple Interest = %f",si); } |

**Output:**

*Enter principal,rate and time:50000*

*8*

*1*

*Simple Interest = 4000.000000*

Comment down below if you have any queries regarding how to calculate simple interest in C.

jakiaI just want to say what about time is it year or month or day?If you clear it will be good.

Neeraj MishraTime is in years.

Rishabhyes bro..always

anil# awesome bro;

MANCHIT VAIDIn which software are you typing this?????

RishabhC/C++ programming language

Sacchida Nanda VishwakarmaI want to use only two digits after decimal what i do ?

Rishabhuse %0.2f instead of %f

thank u

Coding KnackThanks for sharing knowledge.

SANTHOSH BABUTHANQ YOU BOSS,BEACUSE OF YOU I HAVE SUBMITTED ALL MY OS DIGITAL ASSIGNMENTS ON TIME.

E. Chakradhar chowdaryI was an fresher in programming pls help me to learn more for my better future is trust you will help me

Rishabhalways ready to help…

try! try! & try!

i will recommend you to start with python programming language bcz it will develop confidence and the basic knowledge which will help u in learning different programming languages.