
길이가 서로 다른 A, B, C 세 개의 막대 길이로 삼각형을 만들 수 있으면 "Yes" 출력, 만들 수 없으면 "No" 출력
function solution(a,b,c) {
let answer, max;
let sum = a+b+c;
if(a>b) max = a;
else max = b;
if(max<c) max = c;
if(max<sum-max) answer='Yes';
else answer='No';
return answer;
}
console.log(solution(6,7,11)); // Yes