title: Easy way to compare values of more than 3 variables?
body: <p>I want to check whether these variables have same values.</p>
  
  <p><strong>EXAMPLE:</strong></p>
  
  <pre><code>int a = 5;
  int b = 5;
  int c = 5;
  int d = 5;
  int e = 5;
  . . .
  int k = 5;
  
  if(a==b &amp;&amp; b==c &amp;&amp; c==d &amp;&amp; d==e &amp;&amp; .... &amp;&amp; j==k)  
  {
     //this is Complex way and not well understandable.
  }
  </code></pre>
  
  <p>Any easy way to Compare all are same?<br>
  <strong>LIKE in below example</strong></p>
  
  <pre><code>if(a==b==c==d==e.....j==k)
  {
      //Understandable but not work 
  }
  </code></pre>