Computer Science
Write a program to obtain principal amount, rate of interest and time from user and compute simple interest.
Python
Python Data Handling
122 Likes
Answer
p = float(input("Enter principal: "))
r = float(input("Enter rate: "))
t = float(input("Enter time: "))
si = p * r * t / 100
print("Simple Interest =", si)
Output
Enter principal: 55000.75
Enter rate: 14.5
Enter time: 3
Simple Interest = 23925.32625
Answered By
65 Likes
Related Questions
Write a program that reads a number of seconds and prints it in form : mins and seconds, e.g., 200 seconds are printed as 3 mins and 20 seconds.
[Hint. use // and % to get minutes and seconds]Write a program to obtain x, y, z from user and calculate expression : 4x4 + 3y3 + 9z + 6π
Write a program to take year as input and check if it is a leap year or not.
Write a program to obtain temperatures of 7 days (Monday, Tuesday … Sunday) and then display average temperature of the week.