Python program to find simple interest
Concept to learn: Python Basics
# Python program to find simple interest for the given principal amount, rate of interest and time in number of years.
# Inputs for P, R, N
P = 1000
R = 12
N = 1
# Calculating simple interest(SI)
SI = (P * R * N) / 100
# Print SI for the given values
print("Simple interest = ", SI)
Output of Program
Simple interest = 120.0
No comments:
Post a Comment