Notification texts go here Contact Us Click here

Simple Interest in python

Please wait 0 seconds...
Scroll Down and click on Go to Link for destination
Congrats! Link is Generated
  1.  

  1. """Program to calculate simple interest """

  1.  
  2. p=int(input("Enter principal amount:"))  #taking input
  3. t=int(input("Enter time period (in years) :"))
  4. r=float(input("Enter rate of interest:"))
  5. simpleInterest=(p*t*r)/100 #formula used 
  6. print("Simple interest is:",simpleInterest)
  7.  
  8. OUTPUT :
  9. Enter principal amount:1000
  10. Enter time period (in years) :5
  11. Enter rate of interest:25
  12. Simple interest is1250.0
  13.  

Post a Comment

Cookie Consent
We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.
Oops!
It seems there is something wrong with your internet connection. Please connect to the internet and start browsing again.
AdBlock Detected!
We have detected that you are using adblocking plugin in your browser.
The revenue we earn by the advertisements is used to manage this website, we request you to whitelist our website in your adblocking plugin.