Find out simple interest | Python Program

Simple Interest:

Tips :

  1. You need to know the formula of simple interest (SI).
  2. SI is given by (P*T*R)/100
  3. Where, P is the principle amount
  4. T is the time 
  5. R is the rate

Code :

rate = 1

time = 1

prncpl = int(input('    Welcome user.\n\nEnter the principle :- '))

rate = int(input('Enter the rate of interest (%) :- '))

time = float(input('Enter the time period (in year):- '))

si = (prncpl*rate*time)/100

print('\nSimple interest is :-'+str(si))

print('Total amount payable after '+str(time)+' year is :- '+str(prncpl+si))

Output :


Comments

Popular posts from this blog

TOP 10 PROGRAMMING LANGAUAGES COMMING 2021 | ARTICLE

Write a C-program to swap two number:

Print Fibonacci Series using Recursion | C program :