Program 16:- Write a program to calculate simple interest (SI). Read the principle, rate of interest and number of years from the user.
Answers
Answered by
3
P=eval (input('Enter principle Amount in Rs = '))
ROI=eval (input('Enter Rate of Interest = '))
Years=eval (input('Enter the Number of years ='))
print('Principle = ',P)
print('Rate of Interest = ', ROI)
print('Number of years = ',years)
SI = P*ROI*Years/100
print('Simple Interest = ',SI)
*Output*
Enter Principle Amount in Rs = 1000
Enter Rate of Internet = 8.5
Enter the Number of Years = 3
Principle = 1000
Rate of Interest = 8.5
Number of Years = 3 Simple Interest = 255.0
Similar questions