Docsity

Python program to find the SIMPLE INTEREST, Exercises of Computer science

Toggle sidebar
bg1
SIMPLE INTEREST
Aim
Write a python program to calculate simple interest.
Algorithm
1. Start
2. Get the values of P, T, and R
3. Calculate SI = P*T*R/100
4. Display the simple interest
5. Stop
Program
P=int(input('Enter Principal:\t'))
T=int(input('Enter Time Duration (in years):\t'))
R=int(input('Enter Interest Rate (in percentage):\t'))
SI = (P*R*T) / 100
print('Simple Interest =',SI)
Output
Enter Principal: 10000
Enter Time Duration (in years): 10
Enter Interest Rate (in percentage): 2
Simple Interest = 2000.0
Enter Principal: 200000
Enter Time Duration (in years): 5
Enter Interest Rate (in percentage): 10
pf2

Partial preview of the text

Download Python program to find the SIMPLE INTEREST and more Exercises Computer science in PDF only on Docsity!

SIMPLE INTEREST

Aim

Write a python program to calculate simple interest.

Algorithm

  1. Start
  2. Get the values of P, T, and R
  3. Calculate SI = PTR/
  4. Display the simple interest
  5. Stop

Program

P=int(input('Enter Principal:\t')) T=int(input('Enter Time Duration (in years):\t')) R=int(input('Enter Interest Rate (in percentage):\t')) SI = (PRT) / 100 print('Simple Interest =',SI)

Output

Enter Principal: 10000 Enter Time Duration (in years): 10 Enter Interest Rate (in percentage): 2 Simple Interest = 2000. Enter Principal: 200000 Enter Time Duration (in years): 5 Enter Interest Rate (in percentage): 10

Simple Interest = 100000.

Result

The python program to calculate simple interest is successfully completed and the output is verified.