We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 83026bb commit 16cf2b1Copy full SHA for 16cf2b1
compound_interest.py
@@ -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
13
14
15
def compound_interest(p, t, r):
0 commit comments