Skip to content
Closed

Branch1 #38641

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion compound_interest.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
def compound_interest(p, t, r):
return p * (pow((1 + r / 100), t))


def compound_interest_equivalent(p, t, r):
return p * (((1 + r) / 100))**t))

if __name__ == "__main__":
p = float(input("Enter the principal amount: "))
t = float(input("Enter the time period: "))
Expand Down
2 changes: 1 addition & 1 deletion simple-interest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

# Author: Upkar Lidder (IBM)
# Addtional Authors:
# <your Github username>
# Sh1vam

# Input:
# p, principal amount
Expand Down
Loading