From c8dcc47532d556ae8050fa3a3330b09aef77b752 Mon Sep 17 00:00:00 2001 From: Surbhi-0204 Date: Sun, 24 Nov 2024 14:12:48 +0530 Subject: [PATCH 1/2] Update README.md corrected the readme.md file --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b103466139..f2562b1c20 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ Input: t, time period in years r, annual rate of interest Output - simple interest = p*t*r + simple interest = (p*t*r)/100 ``` _© 2022 XYZ, Inc._ From ff24ee7363d67694b7fa7f849fcfa7818c6d6788 Mon Sep 17 00:00:00 2001 From: Surbhi-0204 Date: Sun, 24 Nov 2024 14:14:18 +0530 Subject: [PATCH 2/2] Update simple-interest.sh Corrected the calculation of simple interest --- simple-interest.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simple-interest.sh b/simple-interest.sh index 27a60fcb55..e9d47b42e5 100755 --- a/simple-interest.sh +++ b/simple-interest.sh @@ -21,6 +21,6 @@ read r echo "Enter time period in years:" read t -s=$(expr $p \* $t \* $r / 100) +s=$(expr ($p * $t * $r )/ 100) echo "The simple interest is: " echo $s