Skip to content

Commit 5bdda93

Browse files
authored
Merge pull request powerexploit#41 from sahilverma0696/sahil_si
Python code to calculate Simple Interest
2 parents 408d6a4 + fa6224e commit 5bdda93

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

Scripts/simple_interest.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Python3 program to find simple interest
2+
# for given principal amount, time and
3+
# rate of interest.
4+
5+
# We can change values here for
6+
# different inputs
7+
P = int(input("Enter the Principal value"))
8+
R = float(input("Enter the rate"))
9+
T = int(input("Enter the time duration"))
10+
11+
# Calculates simple interest
12+
SI = (P * R * T) / 100
13+
14+
# Print the resultant value of SI
15+
print("Simple interest is", SI)
16+
17+

0 commit comments

Comments
 (0)