Skip to content

Commit 16cf2b1

Browse files
authored
Update compound_interest.py
1 parent 83026bb commit 16cf2b1

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

compound_interest.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,3 @@
1-
# This script calculates yearly compound interest given principal, annual rate of interest and time period in years.
2-
# Do not use this in production. Sample purpose only.
3-
4-
# Author: Upkar Lidder (IBM)
5-
6-
# Input:
7-
# p, principal amount
8-
# t, time period in years
9-
# r, annual rate of interest
10-
11-
# Output:
12-
# compound interest = p * (1 + r/100)^t
131

142

153
def compound_interest(p, t, r):

0 commit comments

Comments
 (0)