You are viewing a single comment's thread. Return to all comments →
read X Y Z
X=((Y)) Z=$((Z))
if [[ Y && X ]]; then echo "EQUILATERAL" elif [[ Y || Z || X ]]; then echo "ISOSCELES" else echo "SCALENE" fi
Output: I am getting ISOSCELES as output What is the issue with this code?
Seems like cookies are disabled on this browser, please enable them to open this website
More on Conditionals
You are viewing a single comment's thread. Return to all comments →
read X Y Z
X=((Y)) Z=$((Z))
if [[ Y && X ]]; then echo "EQUILATERAL" elif [[ Y || Z || X ]]; then echo "ISOSCELES" else echo "SCALENE" fi
Output: I am getting ISOSCELES as output What is the issue with this code?