Skip to content

Commit 3f59541

Browse files
committedFeb 10, 2022
Solution is added for Comparing Numbers.
1 parent 8349c4e commit 3f59541

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
 
+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/bin/sh
2+
3+
# Comparing Numbers
4+
# https://www.hackerrank.com/challenges/bash-tutorials---comparing-numbers/problem
5+
6+
read X
7+
read Y
8+
9+
if (($X == $Y))
10+
then
11+
echo "X is equal to Y"
12+
elif (($X > $Y))
13+
then
14+
echo "X is greater than Y"
15+
else
16+
echo "X is less than Y"
17+
fi

0 commit comments

Comments
 (0)
Please sign in to comment.