Python Program for simple interest

Asked: Anonymously |Category: Python

p=eval(input("Enter the value of P : "))

r=eval(input("Enter the value of r : "))

t=eval(input("Enter the value of t : "))

def simple_intrest(p,r,t):

si=(p*r*t)/100

return si

def main():

print(simple_intrest(p,r,t))

if __name__=='__main__':

main()

8 views0 comments

Recent Posts

See All