Computer Science, asked by bobanvb2, 11 months ago

write a program to input the value of principal, rate, and time and calculate simple interest​

Answers

Answered by AskewTronics
0

Python Program :

Explanation:

Principal=float(input("Enter the value of a principal: "))#Take the value of a principal.

Rate=float(input("Enter the value of a rate of interest per annul: "))#Take the value of a rate of interest.

Time=float(input("Enter the value of Time: "))#take the value of Time.

print("The Simple interest= ",(Principal*Rate*Time)/100)#Print the value of a Simple interest.

Output :

  • If the user gives the input as "2000, 5 and 3", then the output is "300".

Code Explanation :

  • The above code is in python language, in which the first, second and the third line is used to take the input from the user.
  • Then the print function prints the value of SI after calculating the help of SI formula.

Learn more :

  • Python : https://brainly.in/question/14689905
Similar questions