DEV Community

PERUMAL S
PERUMAL S

Posted on

Task 3 Qsn-9

Create a program that calculates simple interest. Take the principal amount, rate of interest, and time period as input.

Ans

a=float(input("enter your total loan amount :"))
b=float(input("total months :"))
if (b>=1):
d=(b*(a*0.02))
result=(a+d)
print("your total paid amount",result)
print("intrest amount",d)

Top comments (0)