You are viewing a single comment's thread. Return to all comments →
# Solution based on counting number of unique values c=$(cat | tr ' ' "\n" | sort -n -u | wc -l) [ $c -eq 1 ] && echo EQUILATERAL [ $c -eq 2 ] && echo ISOSCELES [ $c -eq 3 ] && echo SCALENE
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 →