From 3325761530a190dbef959fb9953a693aea9d57ca Mon Sep 17 00:00:00 2001 From: alix30 <62514789+alix30@users.noreply.github.com> Date: Sat, 10 Oct 2020 17:01:22 +0530 Subject: [PATCH] Calculate simple interest Sir/Mam please accept my request --- Simple interest | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Simple interest diff --git a/Simple interest b/Simple interest new file mode 100644 index 00000000000000..0f130af66a4e92 --- /dev/null +++ b/Simple interest @@ -0,0 +1,17 @@ +# Python3 program to find simple interest +# for given principal amount, time and +# rate of interest. + + +def simple_interest(p,t,r): + print('The principal is', p) + print('The time period is', t) + print('The rate of interest is',r) + + si = (p * t * r)/100 + + print('The Simple Interest is', si) + return si + +# Driver code +simple_interest(1000, 2, 5)