Skip to content

Commit 5261c91

Browse files
author
codehouseindia
authored
Merge pull request codehouseindia#316 from EBELJOS3/patch-2
Create simple interest.py
2 parents 29b569d + ca30935 commit 5261c91

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

simple interest.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
2+
3+
4+
def simple_interest(p,t,r):
5+
print('The principal is', p)
6+
print('The time period is', t)
7+
print('The rate of interest is',r)
8+
9+
si = (p * t * r)/100
10+
11+
print('The Simple Interest is', si)
12+
return si
13+
14+
# Driver code
15+
simple_interest(8, 6, 8)

0 commit comments

Comments
 (0)