prettygirlsrock013 prettygirlsrock013
  • 02-03-2021
  • Computers and Technology
contestada

Write a program code in the python programming language to find simple interest given the
formula SI = (P*R*T)/100.
Read P(Principal), R (Rate), T (Time) from the keyboard and Calculate Simple Interest (SI).

Respuesta :

60002135330 60002135330
  • 02-03-2021

Answer:

p = float(input('Principal: '))

r = float(input('Rate: '))

t = float(input('Time: '))

si = (p * r * t) / 100

print(si)

The "float" before the input in the first 3 lines is so you're able to input decimals. If you're not using decimals, you can switch the "float" to "int". However, if you input a decimal number after you switched to int, you will receive an error

Answer Link

Otras preguntas

A quick quiz consists of a multiple choice question with 6 possible answers, followed by a true/false question If both questions are answered with random guesse
Help with this ASAP please !!
(-0.4)^3 - (-0.4)^2.(-3)
Help me out please :)
The distance vs. time graph of a car moving at constant speed should be a straight line. Why do the data points in the graph plotted from observing the motion n
Eccentricity is used the describe the ___ of an elliptical orbit
Describe natural diversity of Nepal​
Essay about overcome a challenge
Why was sharecropping created during Reconstruction (after the Civil War)?
Solve for x 9 - x < 17 btw the < has the line underneath it!