#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
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
World Languages,
5 months ago
English,
5 months ago
English,
9 months ago
Social Sciences,
9 months ago