Skip to content

Commit 341c6f0

Browse files
committed
modified simple interest log
1 parent 83026bb commit 341c6f0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

simple-interest.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ read r
2121
echo "Enter time period in years:"
2222
read t
2323

24+
echo "You have entered:"
25+
echo "principle: ${p}"
26+
echo "interest: ${r}"
27+
echo "year: ${t}"
28+
2429
s=$(expr $p \* $t \* $r / 100)
2530
echo "The simple interest is: "
2631
echo $s

0 commit comments

Comments
 (0)