Back to: Python Basics
0
Aim :- Write A Python Program To Calculate Simple Interest By Principal Amount, Rate of Interest And Number of Months
def SimpleInterest():
p = int(input("Enter Principal Amount : "))
r = int(input("Enter Rate of Interest : "))
n = int(input("Enter Number of Months : "))
interest = ((p * n) * r)/100
print("Principal Amount =",p)
print("Rate of Interest =",r)
print("Number of Months =",n)
print("Simple Interest =",interest)
SimpleInterest()
Algorithm :-
Step 1 :- Take the Input from the user for principal amount , rate of interest and number of months.
Step 2 :- Compute the Simple Interest Using the formula, S.I = p*n*r/100
Step 3 :- Display the computed value.
P.N. : All the post on this website are for demonstration and education purpose only.
Student should perform all the practicals for there personal copies.