# Program to find simple interest

**What is ‘Simple Interest’?**

Simple interest is a quick method of calculating the interest charge on a loan. Simple interest is determined by multiplying the daily interest rate by the principal by the number of days that elapse between payments.

**Simple Interest formula:**

Simple interest formula is given by:

Simple Interest = (P x T x R)/100

Where,

P is the principle amount

T is the time and

R is the rate

**Examples :**

EXAMPLE1: Input : P = 10000 R = 5 T = 5 Output :2500 We need to find simple interest on Rs. 10,000 at the rate of 5% for 5 units of time. EXAMPLE2: Input : P = 3000 R = 7 T = 1 Output :210

The formula to calculate the simple interest is: simple_interest = (P * T * R) / 100 where P is principal amount, T is time & R is rate of interest.

## C++

`// CPP program to find simple interest for ` `// given principal amount, time and rate of ` `// interest. ` `#include<iostream> ` `using` `namespace` `std; ` `int` `main() ` `{ ` ` ` `// We can change values here for ` ` ` `// different inputs ` ` ` `float` `P = 1, R = 1, T = 1; ` ` ` ` ` `/* Calculate simple interest */` ` ` `float` `SI = (P * T * R) / 100; ` ` ` ` ` `/* Print the resultant value of SI */` ` ` `cout << ` `"Simple Interest = "` `<< SI; ` ` ` ` ` `return` `0; ` `} ` |

*chevron_right*

*filter_none*

## Java

`// A Simple JAVA program to compute ` `// simple interest for given principal ` `// amount, time and rate of interest. ` `import` `java.io.*; ` ` ` `class` `GFG ` `{ ` ` ` `public` `static` `void` `main(String args[]) ` ` ` `{ ` ` ` `// We can change values here for ` ` ` `// different inputs ` ` ` `float` `P = ` `1` `, R = ` `1` `, T = ` `1` `; ` ` ` ` ` `/* Calculate simple interest */` ` ` `float` `SI = (P * T * R) / ` `100` `; ` ` ` `System.out.println(` `"Simple interest = "` `+ SI); ` ` ` `} ` `} ` ` ` `// This code is contributed by Anant Agarwal. ` |

*chevron_right*

*filter_none*

## Python3

`# Python3 program to find simple interest ` `# for given principal amount, time and ` `# rate of interest. ` ` ` `# We can change values here for ` `# different inputs ` `P ` `=` `1` `R ` `=` `1` `T ` `=` `1` ` ` `# Calculates simple interest ` `SI ` `=` `(P ` `*` `R ` `*` `T) ` `/` `100` ` ` `# Print the resultant value of SI ` `print` `(` `"simple interest is"` `, SI) ` ` ` `# This code is contributed by Azkia Anam. ` |

*chevron_right*

*filter_none*

## C#

`// A Simple C# program to compute ` `// simple interest for given principal ` `// amount, time and rate of interest. ` `using` `System; ` ` ` `class` `GFG { ` ` ` ` ` `// Driver Code ` ` ` `public` `static` `void` `Main() ` ` ` `{ ` ` ` ` ` `// We can change values here for ` ` ` `// different inputs ` ` ` `float` `P = 1, R = 1, T = 1; ` ` ` ` ` `// Calculate simple interest ` ` ` `float` `SI = (P * T * R) / 100; ` ` ` `Console.Write(` `"Simple interest = "` `+ SI); ` ` ` `} ` `} ` ` ` `// This code is contributed by Nitin Mittal. ` |

*chevron_right*

*filter_none*

## PHP

`<?php ` `// PHP program to find simple interest ` `// for given principal amount, time ` `// and rate of interest. ` ` ` `// We can change values here for ` `// different inputs ` `$P` `= 1; ` `$R` `= 1; ` `$T` `= 1; ` ` ` `/* Calculate simple interest */` `$SI` `= (` `$P` `* ` `$T` `* ` `$R` `) / 100; ` ` ` `/* Print the resultant value of SI */` `echo` `"Simple Interest = "` `. ` `$SI` `; ` ` ` `// This code is contributed by Sam007 ` `?> ` |

*chevron_right*

*filter_none*

**Output :**

Simple Interest : 0.01

This article is contributed by **Anurag Rawat**. If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above.

## Recommended Posts:

- Simple Interest
- Program to find compound interest
- Program to find the rate percentage from compound interest of consecutive years
- Program to find simple moving average
- Times required by Simple interest for the Principal to become Y times itself
- C/C++ program to make a simple calculator
- Program to evaluate simple expressions
- Menu Driven C++ Program for a Simple Calculator
- Find if a degree sequence can form a simple graph | Havel-Hakimi Algorithm
- Compound Interest
- Number of Simple Graph with N Vertices and M Edges
- Program to find sum of 1 + x/2! + x^2/3! +...+x^n/(n+1)!
- Program to find greater value between a^n and b^n
- Program to find LCM of 2 numbers without using GCD
- Program to find the value of sin(nΘ)