Skip to content

Commit 824c2f8

Browse files
Create Number Comparer.sh
1 parent 7d57fde commit 824c2f8

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

Number Comparer.sh

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/bin/bash
2+
clear
3+
echo "Enter values for A, B & C."
4+
read "A"
5+
read "B"
6+
read "C"
7+
if test $A -gt $B -a $A -gt $C;
8+
then
9+
echo "A is the greatest."
10+
else
11+
if test $B -gt $cC;
12+
then
13+
echo "B is the greatest."
14+
else
15+
echo "C is the greatest."
16+
fi
17+
fi

0 commit comments

Comments
 (0)