You are viewing a single comment's thread. Return to all comments →
This is what i have written , Do we have any other short and compact code for this problem?
read x read y read z if [ $x -eq $y ] && [ $y -eq $z ] && [ $z -eq $y ] then echo "EQUILATERAL" elif [ $x -ne $y ] && [ $y -ne $z ] && [ $z -ne $y ] then echo "SCALENE" else echo "ISOSCELES" fi
More on Conditionals
You are viewing a single comment's thread. Return to all comments →
This is what i have written , Do we have any other short and compact code for this problem?