Advertisement
Tariqul_Islam

More on Conditionals

Aug 7th, 2020
811
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.18 KB | None | 0 0
  1. #!/bin/bash
  2. read X
  3. read Y
  4. read Z
  5.  
  6. if ((X == Y && Y == Z)); then
  7.   echo "EQUILATERAL"
  8. elif ((X == Y || X == Z || Y == Z)); then
  9.   echo "ISOSCELES"
  10. else
  11.   echo "SCALENE"
  12. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement