From 9f2a583637f910250f22ccbcc43413d1590e7eb8 Mon Sep 17 00:00:00 2001
From: Komal-ice <159180817+Komal-ice@users.noreply.github.com>
Date: Sat, 10 Aug 2024 19:45:20 +0530
Subject: [PATCH] Create simple-interest.sh

---
 simple-interest.sh | 9 +++++++++
 1 file changed, 9 insertions(+)
 create mode 100644 simple-interest.sh

diff --git a/simple-interest.sh b/simple-interest.sh
new file mode 100644
index 0000000..c0baaa6
--- /dev/null
+++ b/simple-interest.sh
@@ -0,0 +1,9 @@
+#!/bin/bash
+echo "Enter principal amount:"
+read principal
+echo "Enter rate of interest:"
+read rate
+echo "Enter time period in years:"
+read time
+simple_interest=$(echo "scale=2; $principal * $rate * $time / 100" | bc)
+echo "The simple interest is: $simple_interest"