title: A program that checks if a triangle can be built with the sides of given lengths. How can I shorten the IF conditions?
body: <p>I wrote a simple GO program to asks the user for three integers (firstNum, secondNum, and thirdNum). I'm using the triangle inequality to determine if a triangle can be built using those three integers:</p>
  
  <p>A (firstNum) + B (secondNum) > C (thirdNum)</p>
  
  <p>A (firstNum) + C (thirdNum) > B (secondNum)</p>
  
  <p>B (secondNum) + C (thirdNum) > A (firstNum)</p>
  
  <p>The program works fine if I use the following IF statement (see below), but the conditions make the statement a bit too long. I know I can also use nested IF statements but I'm wondering if there's a better way to do it.</p>
  
  <pre><code>if (firstNum+secondNum &gt; thirdNum) &amp;&amp; (firstNum+thirdNum &gt; secondNum) &amp;&amp; (secondNum+thirdNum &gt; firstNum) {
      fmt.Println("A triangle can be built")
  } else {
      fmt.Println("A triangle can't be built")
  }
  </code></pre>
  
  <p>Thank you!</p>