Skip to content

Instantly share code, notes, and snippets.

@p53ud0k0d3
Created March 19, 2015 12:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save p53ud0k0d3/e4e589afeacd221c5490 to your computer and use it in GitHub Desktop.
Save p53ud0k0d3/e4e589afeacd221c5490 to your computer and use it in GitHub Desktop.
HackerRank More On Conditionals
read x
read y
read z
if [ $x -eq $y -a $x -eq $z ]
then
echo "EQUILATERAL"
elif [ $x -ne $y -a $x -ne $z -a $y -ne $z ]
then
echo "SCALENE"
else
echo "ISOSCELES"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment