0% found this document useful (0 votes)
76 views1 page

Simple Interest PDF

This Python code calculates simple interest by prompting the user to input the principal amount, number of years, and interest rate. It then multiplies these values together divided by 100 to calculate the simple interest amount, which it prints out along with the message "is the simple interest".

Uploaded by

karthik karti
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
76 views1 page

Simple Interest PDF

This Python code calculates simple interest by prompting the user to input the principal amount, number of years, and interest rate. It then multiplies these values together divided by 100 to calculate the simple interest amount, which it prints out along with the message "is the simple interest".

Uploaded by

karthik karti
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Simple interest

p=float(input('Enter the principle amount:'))


n=float(input('Enter the no of years:'))
r=float(input('Enter the rate of interest'))
s=p*n*r/100
print(s ,'is the simple interest')

Sample input and output


Enter the principle ammount:4000
Enter the no of years:5
Enter the rate of intrest6
1200.0 is the simple interest

You might also like