Computer Science, asked by Anonymous, 9 months ago

PYTHON CHALLENGE#3

WRITE A PROGRAM IN WHICH USER ENTERS THE PRINCIPAL,RATE OF INTEREST
AND TIME. CALCULATE THE SIMPLE INTEREST

:)

Answers

Answered by 007naman
3

Answer:

p=float(input('enter principal amount : '))

r=int(input('enter rate : '))

t=float(input('enter time : '))

S_I=p*r*t/100

print(S_I)

Answered by Anonymous
2

Answer:

#program to find the simple interest

p=eval(input("enter the principal amount"))

r=eval(input("enter the rate of interest"))

t=eval(input("enter the time period"))

si=((p*r*t)/100)

print(si,"is the simple interest for the given data")

"here eval evaluates whatever input you have given

eg-if it is a float it will assume it to be a float and returns the answer according to that"

#hope it helps you

Similar questions