trojuhelnik = true; if (a + b <= c) { trojuhelnik = false; } else { if (a + c <= b) { trojuhelnik = false; } else { if (b + c <= a) { trojuhelnik = false; } } } if (trojuhelnik) { alert("Trojúhelník lze sestrojit."); } else { alert("Trojúhelník NELZE sestrojit."); }