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

Write in function form X+y=6..?
I am a polyhedron. I am a prism. my two bases are hexagon. my two other faces are rectangles.
What steps did president Wilson have to take to make an official declaration of war?
how many rectangular prism can you make out of 20 snap of cubes
What metric unit should i use to measure the mass of a monkey
when gravity causes a huge amounts of rock or soil to be carried down a slope this form of erosion is referred to as a
Simple Machine Lever: A ________ that pivots on top of a fixed point called a _______.
The shape of the clock is a regular dodecagon with a radius of 14cm. Centered on the clock's face is a green circle of radius 9cm. If the region outside the cir
What is adaptation in animals and plants
A number is divided by 32 is 96. What is the number?