You are viewing a single comment's thread. Return to all comments →
I don't want to boast. But lesser number of comparisons is better, right?
if [ `$a -eq $`b ] && [ `$b -eq $`c ]; then echo "EQUILATERAL" elif [ `$a -ne $`b ] && [ `$b -ne $`c ]; then echo "SCALENE" else echo "ISOSCELES" fi
Or is there a flaw in my 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 →
I don't want to boast. But lesser number of comparisons is better, right?
Or is there a flaw in my code?