Input principle amount, rate, time and calculate simple interest in Python


Write a program in python to input principle amount, rate, time and calculate simple interest (SI).

p=int(input("Enter the principle amount: "))
r=int(input("Enter the rate: "))
t=int(input("Enter the time: "))
si=(p*r*t)/100
print("Simple Interest is: ",si)

Output:-

Enter the principle amount: 2000
Enter the rate: 3
Enter the time: 3

Simple Interest is:  180.0


Post a Comment

0 Comments