From 5ca871a1ea7c13d95603373fed6d162429990574 Mon Sep 17 00:00:00 2001 From: ashish958-lab <72342435+ashish958-lab@users.noreply.github.com> Date: Sun, 4 Oct 2020 17:42:50 +0530 Subject: [PATCH] Simple interest Program to find simple interest --- Simple interest | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Simple interest diff --git a/Simple interest b/Simple interest new file mode 100644 index 0000000..80cb4f9 --- /dev/null +++ b/Simple interest @@ -0,0 +1,22 @@ +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(8, 6, 8)