Skip to content

Commit 50cb591

Browse files
authored
Update compound_interest.py
1 parent 83026bb commit 50cb591

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

compound_interest.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# This script calculates yearly compound interest given principal, annual rate of interest and time period in years.
22
# Do not use this in production. Sample purpose only.
33

4-
# Author: Upkar Lidder (IBM)
4+
# Author: prudvi (IBM)
55

66
# Input:
7-
# p, principal amount
8-
# t, time period in years
9-
# r, annual rate of interest
7+
# p= principal amount
8+
# t= time period in years
9+
# r= annual rate of interest
1010

1111
# Output:
1212
# compound interest = p * (1 + r/100)^t

0 commit comments

Comments
 (0)