More on Conditionals

  • + 0 comments
    read X
    read Y
    read Z
    
    if (( "$X" == "$Y" && "$Y" == "$Z" ))
    then 
        echo "EQUILATERAL"
    elif (( "$X" == "$Y" || "$Y" == "$Z" || "$Z" == "$X" ))
    then 
        echo "ISOSCELES"
    else
        echo "SCALENE"
    fi