Programming Examples

Python program to calculate compound simple interest after taking the principle rate and time


WAP to calculate compound simple interest after taking the principle, rate and time.

Solution

p=int(input("Enter the Principal"))
r=int(input("Enter the Interest Rate"))
t=int(input("Enter the Tenure"))
temp=1+r/100
f=1
for i in range(1,t+1):
    f=f*temp
Amount=p*f
interest=Amount-p
print("The interest on ",p," with rate ",r," is ",interest)
Output

Enter the Principal500

Enter the Interest Rate4

Enter the Tenure7

The interest on  500  with rate  4  is  157.9658896179202

CCC Online Test 2021 CCC Practice Test Hindi Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Best Java Training Institute in Prayagraj (Allahabad) Best Python Training Institute in Prayagraj (Allahabad) O Level Online Test in Hindi Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Sarkari Naukari Notification Best Website and Software Company in Allahabad Sarkari Exam Quiz