In this tutorial, we will create a C program to calculate simple interest. We are solving this program without using any function.

Formula to find simple interest:


si = (pamt* r * t) /100
Where,
pamt is -principle amount
r- Rate is
t - Time is

Program

 #include<stdio.h>
 int main() { 
 int amt, r, t, si; 
 printf("n Enter Principal Amount : ");
 scanf("%d", &amp;amt);
 printf("n Enter Rate of Interest : ");
 scanf("%d", &amp;r);
 printf("n Enter Period of Time : ");
 scanf("%d", &amp;t); si = (amt * r * t) / 100;
 printf("n Simple Interest : %d", si);
 return 0; }

Output:-Enter Principal Amount : 100
Enter Rate of Interest : 2
Enter Period of Time : 3
Simple Interest : 60

Explanation of Program :

In this program, We are finding the simple interest by using the formula of simple interest. You can understand it by given below statements.
amt = 100 for principle amount
r=3 for Interest
t=3 for Time
si=amt*r*t/100;
Now si will provide the result of simple interest.

This article is written by our awesome writer
Comments to: C Program to find the simple interest

Your email address will not be published. Required fields are marked *

Attach images - Only PNG, JPG, JPEG and GIF are supported.

New Dark Mode Is Here

Sign In to access the new Dark Mode reading option.

Join our Newsletter

Get our monthly recap with the latest news, articles and resources.

By subscribing you agree to our Privacy Policy.

Latest Articles

Explore Tutorials By Categories

About

Codeverb is simply an all in one interactive learning portal, we regularly add new topics and keep improving the existing ones, if you have any suggestions, questions, bugs issue or any other queries you can simply reach us via the contact page

Login

Welcome to Codeverb

Ready to learn something new?
Join Codeverb!

Read Smart, Save Time
  •  
    Strength indicator
  •  
  •  
    Log In | Lost Password