Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 16 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,22 @@

## Simple Interest Calculator

A calculator that calculates simple interest given principal, annual rate of interest and time period in years.
A calculator that calculates simple interest given the principal amount, annual rate of interest, and time period in years.

```
### 📥 Input:
- `P` → Principal amount
- `T` → Time period in years
- `R` → Annual rate of interest (percentage)

### 📤 Output:
- **Simple Interest** = `(P × T × R) / 100`

### 💡 Example:
```bash
Input:
p, principal amount
t, time period in years
r, annual rate of interest
Output
simple interest = p*t*r
```
P = 1000
T = 2
R = 5

_© 2022 XYZ, Inc._
Output:
Simple Interest = 100