We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42fea38 commit 6c55781Copy full SHA for 6c55781
simple-interest.sh
@@ -0,0 +1,28 @@
1
+#!/bin/bash
2
+# Simple Interest Calculator
3
+
4
+echo "Enter Principal amount:"
5
+read principal
6
+echo "Enter Rate of interest:"
7
+read rate
8
+echo "Enter Time (in years):"
9
+read time
10
11
+# Calculate Simple Interest
12
+si=$(echo "scale=2; ($principal * $rate * $time) / 100" | bc)
13
14
+echo "Simple Interest is: $si"
15
16
17
18
19
20
21
22
23
24
25
26
27
28
0 commit comments