Support our Blind Hand Charity by donating at 9818291723. Your contribution has the potential to bring about significant positive change for humanity.

Search This Blog

MY PROGRAMMES

Thursday, April 6, 2023

SIMPLE INTEREST(SI) AND COMPOUND INTEREST(CI) QUARTERLY,HALF YEARLY AND ANNUALLY

p=int(input("Enter the principal amount = "))
r=int(input("Enter the rate of interest = "))
t=int(input("Enter the time = "))
si=(p*r*t)/100
a=p*((1+(r/0.01))**t)
ci=a-p
print("The Simple Interest for quarter =",si/4)
print("The Compound Interest for quarter =",ci/4)
print("The Simple Interest for half year =",si/2)
print("The Compound Interest for half year =",ci/2)
print("The Simple Interest for annual =",si/1)
print("The Compound Interest for annual =",ci/1)