Skip to content

Commit 5f322af

Browse files
authored
Create simpleInterest.py
1 parent ba6d79c commit 5f322af

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

simpleInterest.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
principle=float(input("Enter the principle amount:"))
2+
time=int(input("Enter the time(years):"))
3+
rate=float(input("Enter the rate:"))
4+
simple_interest=(principle*time*rate)/100
5+
print("The simple interest is:",simple_interest)

0 commit comments

Comments
 (0)