Skip to content

Commit c32f977

Browse files
authored
Create program to find simple interest
1 parent b39d020 commit c32f977

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Diff for: program to find simple interest

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
define si(p,r,t):
2+
return (p*r*t)/100
3+
4+
p=int(input("Enter the principle amount: "))
5+
r=float(input("Enter the rate of interest: "))
6+
t=int(input("Enter the time: "))
7+
simple_interest=si(p,r,t)
8+
print("\nSimple Interest for given data= ", si)

0 commit comments

Comments
 (0)