Program/Source Code :
principle=float(input("Enter the p amount:"))
time=int(input("Enter the time(years) :"))
rate=float(input("Enter the rate :"))
simple_interest=(principle*time*rate)/100
print("the simple interest is :",simple_interest)
case 1:
Enter the p amount:1200
Enter the time(years) :4
Enter the rate :2
the simle interest is : 96.0
case 2:
Enter the p amount:200
Enter the time(years) :5
Enter the rate :5
the simle interest is : 50.0
No comments:
Post a Comment