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.
My solution in bash, elegant, readable & optimized !) :D
#!/bin/sh# Last modified : 18/08/2019# Author : Nicolas Richard (Nicolas.richard.dev@gmail.com)readedgeAreadedgeBreadedgeCif["$edgeA"-le"0"]||["$edgeA"-le"0"]||["$edgeC"-le"0"];thenexit1elif["$edgeA"=="$edgeB"]&&["$edgeB"=="$edgeC"];thenecho"EQUILATERAL"elif["$edgeA"=="$edgeB"]||["$edgeB"=="$edgeC"]||["$edgeA"=="$edgeC"];thenecho"ISOSCELES"elseecho"SCALENE"fi
P.S : My English & my code is in progress, please correct me if I'm wrong ! :D)
Cookie support is required to access HackerRank
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 →
My solution in bash, elegant, readable & optimized !) :D
P.S : My English & my code is in progress, please correct me if I'm wrong ! :D)