Computer Science, asked by Khushikanyal13, 9 months ago

#Considering Python 3.x
P=input("Enter Principal amount:")
T=input("Enter Time:")
if T>10:
SI = P*T*10/100 °C
else:
SI = 2*8*15/100
print("Simple Interest = ",SI)
principal amount is 20000 and time is 10 years​

Attachments:

Answers

Answered by aditiss
1

According to the program.

P = 20000 and T = 10 years

So, Formula used in the program is .

S.I = P*T*15/100

so, At the first step ( if statement )

It evaluates false because 10 is not greater than 10. so it will move to the else block.

so,

S.I = 20000×10×15/100

S.I = 2000 × 15

S.I = 30000

OUPUT: Simple Interest = 30000

Similar questions