Python program to compute simple interest given all the required values |
Python program to compute simple interest given all the required values
Simple Interest Program |
Program -
p=float(input("Enter the principle amount :"))
t=int(input("Enter the time(years):"))
r=float(input("Enter the rate:"))
simple_interest=(p*t*r)/100
print("The simple interest is :",simple_interest)
t=int(input("Enter the time(years):"))
r=float(input("Enter the rate:"))
simple_interest=(p*t*r)/100
print("The simple interest is :",simple_interest)
Output
Enter the principle amount :200
Enter the time(years):5
Enter the rate:5.0
The simple interest is : 50.0
Enter the time(years):5
Enter the rate:5.0
The simple interest is : 50.0
Post a Comment