Calculate Simple Interest
Principal, rate aur time se simple interest calculate karo.
Working code
principal = 10000
rate = 5
time = 2
interest = (principal * rate * time) / 100
print(interest)Expected output
1000.0How it works
Simple interest formula (P × R × T) / 100 use hota hai. Variables calculation ko readable rakhte hain.
Try Yourself
principal = 5000
rate = 6
time = 3
interest = (principal * rate * time) / 100
print(interest)