We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Linux Shell
- Bash
- More on Conditionals
- Discussions
More on Conditionals
More on Conditionals
Sort by
recency
|
344 Discussions
|
Please Login in order to post a comment
#!/bin/bash
read X read Y read Z
if [[ X -eq Y && X -eq Z && Y -eq Z ]];then echo "EQUILATERAL"
elif [[ X -eq Y || Y -eq Z || X -eq Z ]];then echo "ISOSCELES" else
echo "SCALENE"
fi