You are viewing a single comment's thread. Return to all comments →
#! /bin/bash read X read Y read Z if [ "$X" -eq "$Y" ] && [ "$Y" -eq "$Z" ]; then echo "EQUILATERAL" elif [ "$X" -eq "$Y" ] || [ "$X" -eq "$Z" ] || [ "$Y" -eq "$Z" ]; then echo "ISOSCELES" else echo "SCALENE" fi
Seems like cookies are disabled on this browser, please enable them to open this website
An unexpected error occurred. Please try reloading the page. If problem persists, please contact support@hackerrank.com
More on Conditionals
You are viewing a single comment's thread. Return to all comments →