Skip to content

Commit 35450d5

Browse files
Manthan Subhash ZimanManthan Subhash Ziman
Manthan Subhash Ziman
authored and
Manthan Subhash Ziman
committed
Calculate Compound Interest
1 parent 8623f90 commit 35450d5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Compound_interest_calculator

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
P=int(input()) # Principal Amount
2+
r=int(input()) # Rate of interest
3+
n=int(input()) # Time period
4+
CI=P*(1+r/100)**n-P # CI - Compound Interest
5+
print(round(CI,2))

0 commit comments

Comments
 (0)