title: Check if at least one object is not zero
body: <p>This function need to check that a=b=c=0 or only one is &lt;>0</p>
  
  <p>there is a best way to do this check?</p>
  
  <pre><code>void (int p, int a, int s) {
      if ((p != 0 &amp;&amp; a != 0) 
          || (p != 0 &amp;&amp; s != 0)
          || (a != 0 &amp;&amp; s != 0)
          || (a != 0 &amp;&amp; s != 0 &amp;&amp; p != 0)) throw new Exception("Error please set A or P or S");
  
  }
  </code></pre>