Python programs coding series - Calculating Simple Interest
Calculating Simple interest
#Calculate Simple interest #Formula : Simple Intesrest= Principal* No of Years* Rate of Interest/100
principal = int(input(“Enter the principal amount invested: ”)) years = int(input(“Enter the number of Years to invest : ”)) interest_rate = float(input(“Enter the rate of Interest : ”))
simple_interest = principal * years *interest_rate / 100
print(“Simple Interest availed: “+str(simple_interest))
Output
Enter the principal amount invested: 10000 Enter the number of Years to invest : 5 Enter the rate of Interest : 6.5 Simple Interest availed: 3250.0
