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

Sargon conquered Ur and Nippur. a. Yes b. No
Use the substitution method to solve 3x-5y=-8 and x+2y=1
Of the European countries that settled America, which country was primarily interested in fur industry? * A.) France B.) Spain C.)Portugal D.) England
what are the rank top 5 countries in Latin America
which philossophers called all people the ''sovereign'' meaning all power should rest with them ?
What is the mean to a math problem
Organizations such as Young Italy, Young Germany, Young Hungary, and Young Ireland all inspired?
a maze at a country fair is made from 275 bales of hay. the maze at the state fair is made from 4 times as many bales of hay. how nany bales of hay are used for
A person throws a tennis ball 6 m/s straight up. How long does it take for it to come back to their hand?
find 3 consecutive even integers with a sum of -30